Commit ec0fec36 authored by Alexandre Dulaunoy's avatar Alexandre Dulaunoy
Browse files

Fail safe if content-type is not gzip

parent f24cdb68
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -323,6 +323,7 @@ class Configuration():
            return req.urlopen(getfile)
        else:
            response = req.urlopen(getfile + '.gz')
            data = None
            if 'gzip' in response.info().get('Content-Type'):
                buf = BytesIO(response.read())
                data = gzip.GzipFile(fileobj=buf)