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):
info = response.info()
except (ConnectionLost, urllib.error.URLError, urllib.error.HTTPError):
return None
content_type = info.getheader('content-type')
etag = info.getheader('etag')
content_type = info.get('content-type')
etag = info.get('etag')
if etag.startswith('W/'):
etag = etag[2:]
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