Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improper handling of empty POST requests #543

Merged
merged 1 commit into from
Mar 11, 2024
Merged

fix: Improper handling of empty POST requests #543

merged 1 commit into from
Mar 11, 2024

Conversation

mayooot
Copy link
Contributor

@mayooot mayooot commented Mar 7, 2024

issue: #532

@emicklei emicklei merged commit b3a6f77 into emicklei:v3 Mar 11, 2024
@liggitt
Copy link
Contributor

liggitt commented Nov 22, 2024

Is an explicitly zero-length body always invalid? If not, the merged PR for this looks incorrect at first glance...

Things like https://lists.w3.org/Archives/Public/ietf-http-wg/2010JulSep/0276.html led me to think a zero-length body on put/post/patch was valid

How else would you send a text/plain POST or PUT intended to set an empty value?

(we spotted this while reviewing an update of the library for Kubernetes in kubernetes/kubernetes#128919)

@emicklei
Copy link
Owner

emicklei commented Dec 2, 2024

hi @liggitt , thank you for sharing your thoughts. I will have a look at the docs suggested.

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.

3 participants