fixed gzip support
This commit is contained in:
parent
aff490beea
commit
76264fd19f
|
@ -383,7 +383,11 @@ def getConfig():
|
|||
|
||||
response = uh.open(request)
|
||||
|
||||
if (response.headers['content-encoding'] == 'gzip'):
|
||||
text = gzip.GzipFile(fileobj=StringIO.StringIO(response.read())).read()
|
||||
else:
|
||||
text = response.read()
|
||||
|
||||
configxml = []
|
||||
configxml.append(text)
|
||||
|
||||
|
|
Loading…
Reference in New Issue