Skip to content
Myr

decode response url again

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 7f761f3 · 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
194 unmodified lines
195 response.error = getattr(resp, 'error', None)196197 # Save original response for later.198 response.raw = resp199 response.url = self.full_url199 response.url = self.full_url.decode('utf-8')200201 return response202203 history = []
129 unmodified lines
333 query = query.encode('utf-8')334 if isinstance(fragment, str):335 fragment = fragment.encode('utf-8')336337 url = (urlunparse([ scheme, netloc, path, params, query, fragment ]))337 url = (urlunparse([scheme, netloc, path, params, query, fragment]))338339 if self._enc_params:340 if urlparse(url).query:341 url = '%s&%s' % (url, self._enc_params)
462 unmodified lines