Commit d8e4edd5 authored by Senthil Kumaran's avatar Senthil Kumaran

Fix Issue8194 - Fix incompatible API change in the parse_respones for xmlrpclib.

parent 705e8d88
......@@ -1446,8 +1446,13 @@ class Transport:
def parse_response(self, response):
# read response data from httpresponse, and parse it
if response.getheader("Content-Encoding", "") == "gzip":
stream = GzipDecodedResponse(response)
# Check for new http response object, else it is a file object
if hasattr(response,'getheader'):
if response.getheader("Content-Encoding", "") == "gzip":
stream = GzipDecodedResponse(response)
else:
stream = response
else:
stream = response
......
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