-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
HEAD requests fail with: HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR #13725
Labels
Comments
FYI it is not just |
The server sends a response to the HEAD request which includes bytes after the headers. This is invalid HTTP (in 1.1 and 2). curl 8.4 ignored these bytes with a warning while 8.6 and newer fail. I made #13732 to fix this. |
icing
added a commit
to icing/curl
that referenced
this issue
May 21, 2024
- as reported in curl#13725, some servers wrongly send body bytes in responses to a HEAD request. This used to be tolerated in curl 8.4 and before and leads to failed transfers in newer versions. - restore previous behaviour for HTTP/1.1 and HTTP/2: * 1.1: do not add 'Transfer-Encoding' writers from HEAD responses. RFC 9112 says they do not apply. * 2: when the transfer expects 'no_body', to not report stream resets as error when all response headers have been received.
icing
added a commit
to icing/curl
that referenced
this issue
May 21, 2024
- test HEAD request with 'Transfer-Encoding:chunked' and non-encoded response content - verifies curl#13725
lcolladotor
added a commit
to lcolladotor/cshl_rstats_genome_scale_2024
that referenced
this issue
Jun 6, 2024
… by installing curl version 8.8.0 with Homebrew (brew install curl) + compiling the curl R package from source. Related to curl/curl#13725, Bioconductor/BiocFileCache#48, and other issues.
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Users of the R bindings found that after a recent libcurl update, the following started failing:
If we disable HTTP/2 the request also errors but with
chunk hex-length char not a hex digit: 0x1f
error:curl/libcurl version
I confirmed the problem started appearing on curl 8.6.0 and 8.7.1 on MacOS.
I also confirmed the problem did not appear on curl 8.4.0 on MacOS.
operating system
MacOS
The text was updated successfully, but these errors were encountered: