]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update pdns/dnsdistdist/doh3.cc 13713/head
authorCharles-Henri Bruyand <charleshenri.bruyand+github@gmail.com>
Fri, 12 Jan 2024 18:23:36 +0000 (19:23 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2024 18:23:36 +0000 (19:23 +0100)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/dnsdistdist/doh3.cc

index 279b19b8402b7e91170169a3a07706a20d6e63c2..9d34716cc2680c4ddaf71bd0e84abd3d572eef13 100644 (file)
@@ -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 */