minor update

This commit is contained in:
Miroslav Stampar 2011-01-31 22:50:54 +00:00
parent 25c175a9a5
commit 35b6d7278a

View File

@ -119,6 +119,7 @@ class Connect:
conn = multipartOpener.open(url, multipart)
page = conn.read()
responseHeaders = conn.info()
responseHeaders[URI_HTTP_HEADER] = conn.geturl()
page = decodePage(page, responseHeaders.get("Content-Encoding"), responseHeaders.get("Content-Type"))
return page
@ -240,6 +241,7 @@ class Connect:
page = conn.read()
code = conn.code
responseHeaders = conn.info()
responseHeaders[URI_HTTP_HEADER] = conn.geturl()
page = decodePage(page, responseHeaders.get("Content-Encoding"), responseHeaders.get("Content-Type"))
status = getUnicode(conn.msg)