diff --git a/lib/core/option.py b/lib/core/option.py index 9d1db72ac..f60423638 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -571,6 +571,10 @@ def __setHTTPMethod(): def __setHTTPExtraHeaders(): + parseTargetUrl() + + conf.httpHeaders.append(("Host", conf.hostname)) + if conf.headers: debugMsg = "setting extra HTTP headers" logger.debug(debugMsg)