Skip to content

Conversation

@SamuelGoulart
Copy link
Contributor

Description

This PR adds content-type parsers to the WebServer to handle different request formats.

  • Added support for application/json with fallback to {} when the body is empty.
  • Added support for application/x-www-form-urlencoded.

Motivation

Previously, requests with application/x-www-form-urlencoded returned 415 Unsupported Media Type.
With this change, the server can now correctly parse and process this payload type.

lucassm02
lucassm02 previously approved these changes Dec 3, 2025
Copy link
Owner

@lucassm02 lucassm02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SamuelGoulart, thanks for the changes!

@lucassm02 lucassm02 merged commit 2ea64d6 into lucassm02:main Dec 3, 2025
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants