Skip to content

Commit

Permalink
Merge pull request #162 from lextoumbourou/fix-response-error
Browse files Browse the repository at this point in the history
Ensure response.error is populated correctly.
  • Loading branch information
fiorix committed Dec 28, 2014
2 parents 3950ffb + 2c8318b commit 66e3e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyclone/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def fetch(self):
else:
break

response.error = None
response.error = response.code >= 400
response.headers = dict(response.headers.getAllRawHeaders())
# HTTP 204 and 304 responses have no body
# http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
Expand Down

0 comments on commit 66e3e4f

Please sign in to comment.