Navigation Menu

Skip to content

Commit

Permalink
Ensure response.error is populated correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextoumbourou committed Dec 17, 2014
1 parent b8d3f1c commit 2c8318b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyclone/httpclient.py
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 2c8318b

Please sign in to comment.