This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2017-11-20.14:02:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511186531.52.0.213398074469.issue32084@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-11-20 14:02:11vstinnersetrecipients: + vstinner
2017-11-20 14:02:11vstinnersetmessageid: <1511186531.52.0.213398074469.issue32084@psf.upfronthosting.co.za>
2017-11-20 14:02:11vstinnerlinkissue32084 messages
2017-11-20 14:02:11vstinnercreate