Fixed a minor bug when displaying requested page in -v >= 3

This commit is contained in:
Bernardo Damele 2010-01-16 21:47:52 +00:00
parent f337cd6e0a
commit c18a5cb92f

View File

@ -73,15 +73,11 @@ class Connect:
page = ""
cookieStr = ""
requestMsg = "HTTP request:\n%s " % conf.method
requestMsg += "%s" % urlparse.urlsplit(url)[2] or "/"
responseMsg = "HTTP response "
requestHeaders = ""
responseHeaders = ""
if re.search("http[s]*://%s" % conf.hostname, url, re.I):
requestMsg += "%s" % conf.path or "/"
else:
requestMsg += "%s" % urlparse.urlsplit(url)[2] or "/"
if silent:
socket.setdefaulttimeout(3)