← Commit list

790a219284

Stefan Eissing
Stefan Eissing
2026-09-25
SUCCESS Duration: 460s

Subject

http2: fix reset after 1xx response

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/http2.c+3 -4
@@ -987,17 +987,16 @@ static CURLcode on_stream_frame(struct Curl_cfilter *cf,
return CURLE_RECV_ERROR;
/* Only final status code signals the end of header */
- if(stream->status_code / 100 != 1)
+ if(stream->status_code / 100 != 1) {
+ stream->resp_hds_complete = TRUE;
stream->bodystarted = TRUE;
+ }
else
stream->status_code = -1;
h2_xfer_write_resp_hd(cf, data, stream, STRCONST("\r\n"),
(bool)stream->closed);
- if(stream->status_code / 100 != 1) {
- stream->resp_hds_complete = TRUE;
- }
Curl_multi_mark_dirty(data);
break;
case NGHTTP2_PUSH_PROMISE: