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 May 3, 2023
1 parent 5615309 commit 0195e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_build_linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ def do_HEAD(self):
self.do_GET()

def do_GET(self):
records.append(self.headers.as_string())
self.send_response(200, "OK")
self.send_header("Content-Length", "0")
self.end_headers()
records.append(self.headers.as_string())
return HeadersDumperHandler


Expand Down

0 comments on commit 0195e08

Please sign in to comment.