diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2006-04-13 07:00:24 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2006-04-13 07:00:24 +0000 |
commit | e8650bbf16fe46a482d98c99399312abb960a1aa (patch) | |
tree | 5ca5dabeccd8da0e0d75a16f454a8841640d4e2d /src/http.lua | |
parent | be57b387d2394cc670b37e04edab41e293d47560 (diff) | |
download | luasocket-e8650bbf16fe46a482d98c99399312abb960a1aa.tar.gz luasocket-e8650bbf16fe46a482d98c99399312abb960a1aa.tar.bz2 luasocket-e8650bbf16fe46a482d98c99399312abb960a1aa.zip |
http.request was using old host header during redirects.
Diffstat (limited to '')
-rw-r--r-- | src/http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.lua b/src/http.lua index 6465c29..558f347 100644 --- a/src/http.lua +++ b/src/http.lua | |||
@@ -261,7 +261,7 @@ function tredirect(reqt, location) | |||
261 | local result, code, headers, status = trequest { | 261 | local result, code, headers, status = trequest { |
262 | -- the RFC says the redirect URL has to be absolute, but some | 262 | -- the RFC says the redirect URL has to be absolute, but some |
263 | -- servers do not respect that | 263 | -- servers do not respect that |
264 | url = url.absolute(reqt, location), | 264 | url = url.absolute(reqt.url, location), |
265 | source = reqt.source, | 265 | source = reqt.source, |
266 | sink = reqt.sink, | 266 | sink = reqt.sink, |
267 | headers = reqt.headers, | 267 | headers = reqt.headers, |