The problem is that the version detection in lib/http.c around line 3310 assumes HTTP/major.minor, and 8243a95 changes that, so HTTP/2 gets detected as 10, which then makes a lot of code fall back to HTTP/1.0 behaviour such as connection closing.
Note that 8243a95 was committed between 7.49 and 7.49.1, so the current released version (7.49.1) is affected.
The text was updated successfully, but these errors were encountered:
- Change the parser to not require a minor version for HTTP/2.
HTTP/2 connection reuse broke when we changed from HTTP/2.0 to HTTP/2
in 8243a95 because the parser still expected a minor version.
Reported-by: Andrew Robbins, Frank Gevaerts
This also caused the -L/--location flag to be ignored when curl 7.49.1 uses HTTP/2. This has broken a few scripts. The flag seems to work again as of f9eed59. Would this be worth making another bugfix release, or is 7.50 close to finished?