Commit e86f4bf4 authored by Alexandre's avatar Alexandre
Browse files

[DoH] Check HTTP code not in 400 range

parent 17b3cd4c
......@@ -708,7 +708,7 @@ def run_check_trunc(connection):
if print_result(connection, request, prefix=test_name, display_err=True): # The test must fail, or returns FORMERR.
ok = (request.rcode == dns.rcode.FORMERR)
else:
ok = False
ok = (request.rcode >= 400 and request.rcode < 500)
return ok
def run_check_additionals(connection):
......
......@@ -66,7 +66,6 @@ tests:
- 'https://doh.bortzmeyer.fr/'
- 'ressources-pedagogiques.org'
retcode: 0
stderr: ''
stdout: "OK\n"
- exe: './homer.py'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment