|
|
@@ -45,6 +45,7 @@ |
|
|
|
ident = '$Id: Client.py 1496 2010-03-04 23:46:17Z pooryorick $' |
|
|
|
|
|
|
|
from .version import __version__ |
|
|
|
from io import StringIO |
|
|
|
|
|
|
|
#import xml.sax |
|
|
|
import urllib.request, urllib.parse, urllib.error |
|
|
@@ -152,7 +153,7 @@ class HTTP: |
|
|
|
return -1, e.line, None |
|
|
|
|
|
|
|
self.headers = response.msg |
|
|
|
self.file = response.fp |
|
|
|
self.file = StringIO(response.fp.read().decode('utf-8')) |
|
|
|
return response.status, response.reason, response.msg |
|
|
|
|
|
|
|
def close(self): |
|
|
|