mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Fix #216: handle 'Link' header
Headers with capitals are returned by http.client (replacing httplib in Python 3)
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user