From f185e5cdd5a88f1c1ba73e4ce7ec88fad2b33a28 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 10 Jun 2013 22:26:34 +0200 Subject: [PATCH] Fix for an Issue #463 --- lib/request/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 4d8ba5d6f..7a964d84d 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -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)