Skip to content
Myr

Revert "Initial stop-the-bleeding fix"

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

This reverts commit 730c0e2e2bef77968a86962f9d5f2bebba4d19ec.

authored by Chris Adams · committed by Chris Adams · parent 495646b · Browse files · 1 file+0 added−3 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+0 added−3 removed

  • other:+0 added−3 removed

1 file+0 added−3 removed

modified:requests/models.py-3 removed
208 unmodified lines
209 if r.status_code in REDIRECT_STATI and not self.redirect:210 while (('location' in r.headers) and211 ((r.status_code is codes.see_other) or (self.allow_redirects))):212213 r.content # Consume socket so it can be released214213 if not len(history) < self.config.get('max_redirects'):214 raise TooManyRedirects()215216 history.append(r)
44 unmodified lines
261 r = request.response262 self.cookies.update(r.cookies)263264 r.history = history267 r.content # Consume socket so it can be released265266 self.response = r267 self.response.request = self268 self.response.cookies.update(self.cookies)
532 unmodified lines