Skip to content

Commit

Permalink
dnsdist: Use the new set_http_response() API in DoH regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Jan 11, 2021
1 parent 341d255 commit e13f437
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion regression-tests.dnsdist/test_DOH.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e13f437

Please sign in to comment.