Skip to content

Commit

Permalink
Unit tests: linkcheck: send zero-valued Content-Length header for uns…
Browse files Browse the repository at this point in the history
…upported-method response in redirect handler
  • Loading branch information
jayaddison committed Apr 21, 2023
1 parent 2ee5cc6 commit ac2baaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_build_linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ def do_HEAD(self):
self.do_GET()
else:
self.send_response(405, "Method Not Allowed")
self.send_header("Content-Length", "0")
self.end_headers()

def do_GET(self):
Expand Down

0 comments on commit ac2baaa

Please sign in to comment.