Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #162 from lextoumbourou/fix-response-error

Ensure response.error is populated correctly.
  • Loading branch information...
commit 66e3e4fb4dad78a319478b3a20d91a94f2439557 2 parents 3950ffb + 2c8318b
@fiorix authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cyclone/httpclient.py
View
2  cyclone/httpclient.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.