Fix #216: handle 'Link' header

Headers with capitals are returned by http.client (replacing httplib in Python 3)
This commit is contained in:
Vincent Jacques
2013-12-23 19:25:11 -08:00
parent 66edeb601f
commit 6767e75c52
7 changed files with 217 additions and 6 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ class Requester:
response = cnx.getresponse()
status = response.status
responseHeaders = dict(response.getheaders())
responseHeaders = dict((k.lower(), v) for k, v in response.getheaders())
output = response.read()
cnx.close()