Skip to content
Myr

Fix #2207

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

@Lukasa wrote the fix in #2207

authored by Ian Cordasco · committed by Ian Cordasco · parent 359659c · 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/sessions.py+2 added-2 removed
132 unmodified lines
133 else:134 url = requote_uri(url)135136 prepared_request.url = to_native_string(url)137 # cache the url138 if resp.is_permanent_redirect:137 # Cache the url, unless it redirects to itself.138 if resp.is_permanent_redirect and req.url != prepared_request.url:139 self.redirect_cache[req.url] = prepared_request.url140141 # http://tools.ietf.org/html/rfc7231#section-6.4.4142 if (resp.status_code == codes.see_other and
517 unmodified lines