-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
bad argument error if there is a white space at first header. #11605
Labels
Comments
I don't think curl is wrong here (but the error message is confusing). but since the popular browsers seem to silently deal with this, I suppose curl should as well. |
thank you for quick reply. |
thank you for quick patch. |
At persistent connection case, this patch makes a segfault. Below is second curl_easy_perform()'s back trace:
|
|
See #11620 for the new problem |
ptitSeb
pushed a commit
to wasix-org/curl
that referenced
this issue
Sep 25, 2023
This is a bad header fold but since the popular browsers accept this violation, so does curl now. Unless built with hyper. Add test 1473 to verify and adjust test 2306. Reported-by: junsik on github Fixes curl#11605 Closes curl#11607
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did this
curl 8.2.0 tells bad argument error if there is a white space at first header.
this might be related with folded header patch: b7baa78
A header name cannot have any whitespace at RFC.
But I am not sure strict manger is right or not.
For fixing it, following code could be considered:
I expected the following
curl 7.68.0
curl/libcurl version
curl 8.2.0
operating system
No response
The text was updated successfully, but these errors were encountered: