Commit bee71a13 authored by Adrian Georgescu's avatar Adrian Georgescu

Fixed getheaders of HTTP objects, renamed to get in Python3

parent 7596f474
...@@ -311,8 +311,8 @@ class ContactIcon(object): ...@@ -311,8 +311,8 @@ class ContactIcon(object):
info = response.info() info = response.info()
except (ConnectionLost, urllib.error.URLError, urllib.error.HTTPError): except (ConnectionLost, urllib.error.URLError, urllib.error.HTTPError):
return None return None
content_type = info.getheader('content-type') content_type = info.get('content-type')
etag = info.getheader('etag') etag = info.get('etag')
if etag.startswith('W/'): if etag.startswith('W/'):
etag = etag[2:] etag = etag[2:]
etag = etag.replace('\"', '') etag = etag.replace('\"', '')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment