From 9c620da0a557e43cb5d0fbcea092dac18d944a41 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 31 Dec 2009 12:34:18 +0000 Subject: [PATCH] Minor fix --- lib/request/connect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/request/connect.py b/lib/request/connect.py index 0428b4880..8b68f6906 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -196,6 +196,9 @@ class Connect: warnMsg += "status code, try to force the HTTP User-Agent " warnMsg += "header with option --user-agent or -a" + else: + warnMsg = "unable to connect to the target url" + if "BadStatusLine" not in tbMsg: warnMsg += " or proxy"