From: Remi Gacogne Date: Tue, 12 Dec 2023 14:04:21 +0000 (+0100) Subject: dnsdist: Uh, phrasing! X-Git-Tag: dnsdist-1.9.0-alpha4~5^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a79980a3ffbb4b6f68b76adc2adfe342bf3be66c;p=thirdparty%2Fpdns.git dnsdist: Uh, phrasing! --- diff --git a/pdns/dnsdistdist/dnsdist-nghttp2-in.cc b/pdns/dnsdistdist/dnsdist-nghttp2-in.cc index 2e25f0212a..5fe0206a61 100644 --- a/pdns/dnsdistdist/dnsdist-nghttp2-in.cc +++ b/pdns/dnsdistdist/dnsdist-nghttp2-in.cc @@ -272,7 +272,7 @@ bool IncomingHTTP2Connection::checkALPN() return true; } - const std::string data("HTTP/1.1 400 Bad Request\r\nConnection: Close\r\n\r\nThis server implements RFC 8484 - DNS Queries over HTTP, and requires HTTP/2 in accordance to section 5.2 of the RFC.\r\n"); + const std::string data("HTTP/1.1 400 Bad Request\r\nConnection: Close\r\n\r\nThis server implements RFC 8484 - DNS Queries over HTTP, and requires HTTP/2 in accordance with section 5.2 of the RFC.\r\n"); d_out.insert(d_out.end(), data.begin(), data.end()); writeToSocket(false); diff --git a/regression-tests.dnsdist/test_DOH.py b/regression-tests.dnsdist/test_DOH.py index bd831eb5c8..7fc186d982 100644 --- a/regression-tests.dnsdist/test_DOH.py +++ b/regression-tests.dnsdist/test_DOH.py @@ -400,7 +400,7 @@ class DOHTests(object): data = conn.perform_rb() rcode = conn.getinfo(pycurl.RESPONSE_CODE) self.assertEqual(rcode, 400) - self.assertEqual(data, b'This server implements RFC 8484 - DNS Queries over HTTP, and requires HTTP/2 in accordance to section 5.2 of the RFC.\r\n') + self.assertEqual(data, b'This server implements RFC 8484 - DNS Queries over HTTP, and requires HTTP/2 in accordance with section 5.2 of the RFC.\r\n') def testDOHInvalid(self): """