Skip to content
Myr

Add a trailing slash for twitter.com

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 6e90aa7 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:requests/utils.py+4 added
52 unmodified lines
53 scheme, netloc, path, params, query, fragment = urlparse(url)54 if netloc:55 netloc = netloc.encode('idna')5657 # Add a trailing slash to root domain reqests.58 if not len(path):59 path = '/'6061 if isinstance(path, unicode):62 path = path.encode('utf-8')6364 path = urllib.quote(path, safe="%/:=&?~#+!$,;'@()*[]")
335 unmodified lines