Skip to content
Myr

Merge branch 'pr-urlfix-1' of https://github.com/brendoncrawford/requests into develop

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 · parents 5be412d, c363ca4 · Browse files · 1 file+3 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+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:requests/models.py+3 added
315 unmodified lines
316 raise ValueError("Invalid URL %r: No schema supplied" % url)317318 netloc = netloc.encode('idna').decode('utf-8')319320 if not path:321 path = '/'322323 if is_py2:324 if isinstance(path, str):325 path = path.encode('utf-8')326
477 unmodified lines