]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: USe the short `std::array` version suggested by Miod (thanks!) 17801/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 28 Jul 2026 13:51:28 +0000 (15:51 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 28 Jul 2026 13:51:28 +0000 (15:51 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-nghttp2.cc

index c5a5742998e1340f09d407068d76b84a6af649a2..559d40508400721456ba732cc19de2cf7efde40e 100644 (file)
@@ -856,7 +856,7 @@ DoHConnectionToBackend::DoHConnectionToBackend(const std::shared_ptr<DownstreamS
 
   callbacks.reset();
 
-  std::array<nghttp2_settings_entry, 3> settings{
+  const std::array settings{
     /* rfc7540 section-8.2.2:
        "Advertising a SETTINGS_MAX_CONCURRENT_STREAMS value of zero disables
        server push by preventing the server from creating the necessary