From: Remi Gacogne Date: Mon, 12 Oct 2020 14:52:07 +0000 (+0200) Subject: dnsdist: Use the new set_http_response() API in DoH regression tests X-Git-Tag: rec-4.5.0-alpha1~19^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e13f437edbf06e079da66c441a1863571b925f40;p=thirdparty%2Fpdns.git dnsdist: Use the new set_http_response() API in DoH regression tests --- diff --git a/regression-tests.dnsdist/test_DOH.py b/regression-tests.dnsdist/test_DOH.py index 69e37a9f86..c7425432f9 100644 --- a/regression-tests.dnsdist/test_DOH.py +++ b/regression-tests.dnsdist/test_DOH.py @@ -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