httpclient: Send the correct Host-Header if we are following a redirect
This commit is contained in:
parent
438180ead4
commit
cd4fa227cc
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue