headers: accept leading whitespaces on first response header

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 #11605
Closes #11607
This commit is contained in:
Daniel Stenberg 2023-08-07 12:45:45 +02:00
parent cfe85ca562
commit 95ca3c53d3
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 97 additions and 33 deletions

View file

@ -57,6 +57,7 @@ The hyper backend does not support
- `--raw` and disabling `CURLOPT_HTTP_TRANSFER_DECODING`
- RTSP
- hyper is much stricter about what HTTP header contents it allows
- leading whitespace in first HTTP/1 response header
- HTTP/0.9
- HTTP/2 upgrade using HTTP:// URLs. Aka 'h2c'