Fix for an Issue #463

This commit is contained in:
Miroslav Stampar 2013-06-10 22:26:34 +02:00
parent cdb434805a
commit f185e5cdd5

View File

@ -558,7 +558,7 @@ class Connect(object):
processResponse(page, responseHeaders)
if conn and hasattr(conn, "redcode"):
if conn and getattr(conn, "redurl", None):
_ = urlparse.urlsplit(conn.redurl)
_ = ("%s%s" % (_.path or "/", ("?%s" % _.query) if _.query else ""))
requestMsg = re.sub("(\n[A-Z]+ ).+?( HTTP/\d)", "\g<1>%s\g<2>" % getUnicode(_), requestMsg, 1)