summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/httpclient/luasrc/httpclient.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/httpclient/luasrc/httpclient.lua b/libs/httpclient/luasrc/httpclient.lua
index 4f95593103..69abddff32 100644
--- a/libs/httpclient/luasrc/httpclient.lua
+++ b/libs/httpclient/luasrc/httpclient.lua
@@ -303,6 +303,9 @@ function request_raw(uri, options)
end
options.depth = options.depth - 1
+ if options.headers then
+ options.headers.Host = nil
+ end
sock:close()
return request_raw(nuri, options)