We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e0b82d commit 2c40df6Copy full SHA for 2c40df6
1 file changed
libs/server-sent-events/src/curl_client.cpp
@@ -516,6 +516,11 @@ void CurlClient::PerformRequestWithMulti(
516
// Initialize parser for new connection (last_event_id is tracked
517
// separately)
518
context->init_parser();
519
+ // Reset header-accumulator state in case the previous transfer dropped
520
+ // mid-headers, which would otherwise leave reading_headers=true and
521
+ // cause the new response's HTTP/ status line to be skipped.
522
+ context->current_response = http::response_header<>{};
523
+ context->reading_headers = false;
524
525
std::shared_ptr<CURL> curl(curl_easy_init(), curl_easy_cleanup);
526
if (!curl) {
0 commit comments