diff --git a/lib/request/connect.py b/lib/request/connect.py index 4f1840246..1c7000368 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -243,6 +243,9 @@ class Connect: elif "timeout" in tbMsg: warnMsg = "connection timed out to the target url" elif "BadStatusLine" in tbMsg: + debugMsg = "BadStatusLine: %s || %s || %d" % (tbMsg, e, e.line) + logger.debug(debugMsg) + warnMsg = "the target url responded with an unknown HTTP " warnMsg += "status code, try to force the HTTP User-Agent " warnMsg += "header with option --user-agent or -a"