Skip to content
Myr

Fixed #161 (quoting issue).

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

authored by Jérémy Bethmont · committed by Jérémy Bethmont · parent a8e7768 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/models.py+2 added-2 removed
234 unmodified lines
235 # (e.g. '/path/to/resource' instead of 'http://domain.tld/path/to/resource')236 parsed_url = urlparse(url)237 if not parsed_url.netloc:238 parsed_url = list(parsed_url)239 parsed_url[2] = urllib.quote(urllib.unquote(parsed_url[2]))239 parsed_url[2] = urllib.quote(parsed_url[2], safe="%/:=&?~#+!$,;'@()*[]")240 url = urljoin(r.url, str(urlunparse(parsed_url)))241242 # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4243 if r.status_code is codes.see_other:
45 unmodified lines
289 scheme, netloc, path, params, query, fragment = urlparse(self.url)290 netloc = netloc.encode('idna')291 if isinstance(path, unicode):292 path = path.encode('utf-8')293 path = urllib.quote(urllib.unquote(path))293 path = urllib.quote(path, safe="%/:=&?~#+!$,;'@()*[]")294 self.url = str(urlunparse([ scheme, netloc, path, params, query, fragment ]))295296 if self._enc_params:297 if urlparse(self.url).query:
383 unmodified lines