mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #6381 from tk0miya/6378_linkcheck
Fix #6378: linkcheck: Send commonly used User-Agent
This commit is contained in:
commit
d854ec9e10
1
CHANGES
1
CHANGES
@ -116,6 +116,7 @@ Bugs fixed
|
||||
* #6165: autodoc: ``tab_width`` setting of docutils has been ignored
|
||||
* #6311: autosummary: autosummary table gets confused by complex type hints
|
||||
* Generated Makefiles lack a final EOL (refs: #6232)
|
||||
* #6378: linkcheck: Send commonly used User-Agent
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -108,7 +108,8 @@ class CheckExternalLinksBuilder(Builder):
|
||||
kwargs = {
|
||||
'allow_redirects': True,
|
||||
'headers': {
|
||||
'Accept': 'text/html,application/xhtml+xml;q=0.9,*/*;q=0.8'
|
||||
'Accept': 'text/html,application/xhtml+xml;q=0.9,*/*;q=0.8',
|
||||
'User-Agent': requests.useragent_header[0][1],
|
||||
},
|
||||
}
|
||||
if self.app.config.linkcheck_timeout:
|
||||
|
Loading…
Reference in New Issue
Block a user