Skip to content

Commit

Permalink
tests: linkcheck: capture_headers_handler: relocate the (client) head…
Browse files Browse the repository at this point in the history
…er capture to before any server-side communication has been initiated by the handler

(cherry picked from commit 4d485ae)
  • Loading branch information
jayaddison committed Apr 27, 2023
1 parent 01c250e commit bd2ed0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_build_linkcheck.py
Expand Up @@ -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


Expand Down

0 comments on commit bd2ed0b

Please sign in to comment.