From: Charles-Henri Bruyand Date: Fri, 12 Jan 2024 18:23:36 +0000 (+0100) Subject: Update pdns/dnsdistdist/doh3.cc X-Git-Tag: dnsdist-1.9.0-rc1~39^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13713%2Fhead;p=thirdparty%2Fpdns.git Update pdns/dnsdistdist/doh3.cc Co-authored-by: Remi Gacogne --- 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 */