Merge ../Nim into devel

This commit is contained in:
Charles Blake 2015-08-03 08:06:20 -04:00
commit 2d9a0c96c6
22 changed files with 875 additions and 657 deletions

View file

@ -402,7 +402,7 @@ proc request*(url: string, httpMethod: string, extraHeaders = "",
headers.add(" HTTP/1.1\c\L")
add(headers, "Host: " & r.hostname & "\c\L")
add(headers, "Host: " & parseUri(url).hostname & "\c\L")
if userAgent != "":
add(headers, "User-Agent: " & userAgent & "\c\L")
if proxy != nil and proxy.auth != "":