]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Apply Miod's suggestion
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 22 Aug 2025 12:38:03 +0000 (14:38 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 25 Aug 2025 13:16:28 +0000 (15:16 +0200)
Co-authored-by: Miod Vallat <miod.vallat@powerdns.com>
Signed-off-by: Remi Gacogne <github@coredump.fr>
pdns/dnsdistdist/dnsdist-nghttp2-in.cc

index 16908cd31dfc88155c9abd9690338dce9d9463b7..3b4ce122e6b9e5452b4196477b11804a9b21ca5f 100644 (file)
@@ -554,7 +554,7 @@ static const std::string s_xForwardedForHeaderName("x-forwarded-for");
 
 static void addHeader(std::vector<nghttp2_nv>& headers, const std::string_view& name, bool nameIsStatic, const std::string_view& value, bool valueIsStatic)
 {
-  /* Be careful when setting NGHTTP2_NV_FLAG_NO_COPY_NAME or NGHTTP2_NV_FLAG_NO_COPY_VALUE, the corresponding name or value needs to exist until after nghttp2_session_send() has been called, not just nghttp2_submit_response */
+  /* Be careful when setting NGHTTP2_NV_FLAG_NO_COPY_NAME or NGHTTP2_NV_FLAG_NO_COPY_VALUE, the corresponding name or value needs to exist until after nghttp2_session_send() has been called, not just nghttp2_submit_response(). */
   uint8_t flag{NGHTTP2_NV_FLAG_NONE};
   if (nameIsStatic) {
     flag |= NGHTTP2_NV_FLAG_NO_COPY_NAME;