httpclient: Send the correct Host-Header if we are following a redirect

This commit is contained in:
Steven Barth 2009-04-30 12:58:04 +00:00
parent 438180ead4
commit cd4fa227cc

View file

@ -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)