mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8000 from tk0miya/7985_protocol_relative_url
linkcheck: Fix a protocol relative URL is considered as a local file
This commit is contained in:
@@ -35,7 +35,7 @@ from sphinx.util.requests import is_ssl_error
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
uri_re = re.compile('[a-z]+://')
|
||||
uri_re = re.compile('([a-z]+:)?//') # matches to foo:// and // (a protocol relative URL)
|
||||
|
||||
|
||||
DEFAULT_REQUEST_HEADERS = {
|
||||
|
||||
Reference in New Issue
Block a user