From 4d485aee6f304d432121f57c375a479f9674cc5b Mon Sep 17 00:00:00 2001 From: James Addison Date: Fri, 21 Apr 2023 11:29:05 +0100 Subject: [PATCH] Unit tests: linkcheck: capture_headers_handler: relocate the (client) header capture to before any server-side communication has been initiated by the handler --- tests/test_build_linkcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py index c9114ed6e4f..5aac14b0fd3 100644 --- a/tests/test_build_linkcheck.py +++ b/tests/test_build_linkcheck.py @@ -252,9 +252,9 @@ def do_HEAD(self): self.do_GET() def do_GET(self): + records.append(self.headers.as_string()) self.send_response(200, "OK") self.end_headers() - records.append(self.headers.as_string()) return HeadersDumperHandler