From: Stefan Eissing Date: Thu, 20 Apr 2023 09:59:52 +0000 (+0200) Subject: HTTP3/quiche: terminate h1 response header when no body is sent X-Git-Tag: curl-8_1_0~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20252b77bcef114c4d4a9bed571f314fd669c7a3;p=thirdparty%2Fcurl.git HTTP3/quiche: terminate h1 response header when no body is sent - fixes a failure in test2501 where a response without body was missing the final empty line Closes #11003 --- diff --git a/lib/vquic/curl_quiche.c b/lib/vquic/curl_quiche.c index 6f2736d66e..1a6838b012 100644 --- a/lib/vquic/curl_quiche.c +++ b/lib/vquic/curl_quiche.c @@ -527,6 +527,12 @@ static CURLcode h3_process_event(struct Curl_cfilter *cf, case QUICHE_H3_EVENT_FINISHED: DEBUGF(LOG_CF(data, cf, "[h3sid=%"PRId64"][FINISHED]", stream3_id)); + if(!stream->resp_hds_complete) { + result = write_resp_raw(cf, data, "\r\n", 2); + if(result) + return result; + stream->resp_hds_complete = TRUE; + } stream->closed = TRUE; streamclose(cf->conn, "End of stream"); break;