From e13f437edbf06e079da66c441a1863571b925f40 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 12 Oct 2020 16:52:07 +0200 Subject: [PATCH] dnsdist: Use the new set_http_response() API in DoH regression tests --- regression-tests.dnsdist/test_DOH.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.2