Skip to content

Commit

Permalink
Merge pull request sphinx-doc#7936 from tk0miya/7691_HEAD_requests
Browse files Browse the repository at this point in the history
Fix sphinx-doc#7691: linkcheck: HEAD requests are not used for checking
  • Loading branch information
tk0miya committed Jul 11, 2020
2 parents d0416e7 + e2c6b42 commit 6059693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Bugs fixed
* #7715: LaTeX: ``numfig_secnum_depth > 1`` leads to wrong figure links
* #7846: html theme: XML-invalid files were generated
* #7894: gettext: Wrong source info is shown when using rst_epilog
* #7691: linkcheck: HEAD requests are not used for checking
* #7928: py domain: failed to resolve a type annotation for the attribute
* #7869: :rst:role:`abbr` role without an explanation will show the explanation
from the previous abbr role
Expand Down
2 changes: 1 addition & 1 deletion sphinx/util/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ def head(url: str, **kwargs: Any) -> requests.Response:
headers.setdefault('User-Agent', useragent_header[0][1])

with ignore_insecure_warning(**kwargs):
return requests.get(url, **kwargs)
return requests.head(url, **kwargs)

0 comments on commit 6059693

Please sign in to comment.