Skip to content

Don't use urlsplit on request path #260

@digitalresistor

Description

@digitalresistor

scheme, netloc, path, query, fragment = urlparse.urlsplit(uri)

This leads to things like:

>>> from urllib import parse as urlparse
>>> urlparse.urlsplit('//testing/whatever')
SplitResult(scheme='', netloc='testing', path='/whatever', query='', fragment='')

Which means we accidentally drop testing before sending it on to the WSGI application. Ask me later how I figured that out.

A request such as:

GET //testing/whatever HTTP/1.1

Is perfectly valid. Non-sensical maybe, but perfectly valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions