Revert "Set correct Host in request header"

This commit is contained in:
Dominik Picheta
2015-08-01 20:48:23 +01:00
parent 8e22b230f0
commit 3b1ca2af4e

View File

@@ -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 != "":