Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef3846e

Browse files
committed
Minor fix in Host header value by Oliver Gruskovnjak
1 parent 45dff4a commit ef3846e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,10 @@ def __setHTTPMethod():
571571

572572

573573
def __setHTTPExtraHeaders():
574+
parseTargetUrl()
575+
576+
conf.httpHeaders.append(("Host", conf.hostname))
577+
574578
if conf.headers:
575579
debugMsg = "setting extra HTTP headers"
576580
logger.debug(debugMsg)

0 commit comments

Comments
 (0)