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:
Takeshi KOMIYA
2020-07-25 22:09:29 +09:00
committed by GitHub

View File

@@ -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 = {