Merge pull request #3169 from nim-lang/revert-3168-patch-1
Revert "Set correct Host in request header"
This commit is contained in:
commit
8dedfdb236
1 changed files with 1 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ proc request*(url: string, httpMethod: string, extraHeaders = "",
|
|||
|
||||
headers.add(" HTTP/1.1\c\L")
|
||||
|
||||
add(headers, "Host: " & parseUri(url).hostname & "\c\L")
|
||||
add(headers, "Host: " & r.hostname & "\c\L")
|
||||
if userAgent != "":
|
||||
add(headers, "User-Agent: " & userAgent & "\c\L")
|
||||
if proxy != nil and proxy.auth != "":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue