From f158291685fb31c0d9b1b1658ca6034160831b19 Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Fri, 12 Jan 2024 19:23:36 +0100 Subject: [PATCH] Update pdns/dnsdistdist/doh3.cc Co-authored-by: Remi Gacogne --- pdns/dnsdistdist/doh3.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/doh3.cc b/pdns/dnsdistdist/doh3.cc index 279b19b840..9d34716cc2 100644 --- a/pdns/dnsdistdist/doh3.cc +++ b/pdns/dnsdistdist/doh3.cc @@ -319,7 +319,7 @@ static void h3_send_response(H3Connection& conn, const uint64_t streamID, uint16 auto returnValue = quiche_h3_send_response(conn.d_http3.get(), conn.d_conn.get(), streamID, headers.data(), // do not include content-type header info if there is no content - (len > 0 ? headers.size() : headers.size() - 1), + (len > 0 && statusCode == 200U ? headers.size() : headers.size() - 1), len == 0); if (returnValue != 0) { /* in theory it could be QUICHE_H3_ERR_STREAM_BLOCKED if the stream is not writable / congested, but we are not going to handle this case */ -- 2.47.2