We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5708fe9 commit 3cec614Copy full SHA for 3cec614
requests/models.py
@@ -232,7 +232,8 @@ def send(self, anyway=False):
232
233
except urllib2.HTTPError, why:
234
self._build_response(why)
235
- self.response.error = why
+ if not self.redirect:
236
+ self.response.error = why
237
else:
238
self._build_response(resp)
239
self.response.ok = True
0 commit comments