Skip to content

Commit

Permalink
tests: linkcheck: InfiniteRedirectOnHeadHandler: close server-side co…
Browse files Browse the repository at this point in the history
…nnection after response body is written, since we do not anticipate the client will read it

Ref: sphinx-doc#11340 (comment)
  • Loading branch information
jayaddison committed May 9, 2023
1 parent aec34ad commit 824202e
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 @@ -536,6 +536,7 @@ def do_GET(self):
self.send_header("Content-Length", str(len(content)))
self.end_headers()
self.wfile.write(content)
self.close_connection = True # we don't expect the client to read this response body


@pytest.mark.sphinx('linkcheck', testroot='linkcheck-localserver', freshenv=True)
Expand Down

0 comments on commit 824202e

Please sign in to comment.