diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py index 6d8db0d3394..56e9e935f5e 100644 --- a/tests/test_build_linkcheck.py +++ b/tests/test_build_linkcheck.py @@ -419,7 +419,7 @@ def test_follows_redirects_on_GET(app, capsys, warning): 'linkcheck_allowed_redirects': {'http://localhost:7777/.*1': '.*'}, }) def test_linkcheck_allowed_redirects(app, warning): - with http_server(make_redirect_handler(support_head=False)): + with http_server(make_redirect_handler(support_head=True)): app.build() with open(app.outdir / 'output.json', encoding='utf-8') as fp: