]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Use the new set_http_response() API in DoH regression tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 12 Oct 2020 14:52:07 +0000 (16:52 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 11 Jan 2021 09:22:00 +0000 (10:22 +0100)
regression-tests.dnsdist/test_DOH.py

index 69e37a9f8678b62a0a98113add8fd4590a12e545..c7425432f95a34afd34864af00d9647f4174cded 100644 (file)
@@ -926,7 +926,8 @@ class TestDOHFFI(DNSDistDOHTest):
           end
         end
         if foundct then
-          ffi.C.dnsdist_ffi_dnsquestion_set_http_response(dq, 200, 'It works!', 'text/plain')
+          local response = 'It works!'
+          ffi.C.dnsdist_ffi_dnsquestion_set_http_response(dq, 200, response, #response, 'text/plain')
           return DNSAction.HeaderModify
         end
       end