STINNER Victor <[email protected]> added the comment:
Extract of send_head():
path = self.translate_path(self.path)
f = None
if os.path.isdir(path):
parts = urllib.parse.urlsplit(self.path)
...
urllib.parse.urlsplit('//www.python.org/%2f..') returns:
SplitResult(scheme='', netloc='www.python.org', path='/%2f..', query='',
fragment='')
Is urlsplit() the correct function to call here? www.python.org is part of the
path, not of the netloc.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32084>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com