mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
http.request was using old host header during redirects.
This commit is contained in:
parent
be57b387d2
commit
e8650bbf16
1
FIX
1
FIX
@ -1,3 +1,4 @@
|
|||||||
|
http was preserving old host header during redirects
|
||||||
fix smtp.send hang on source error
|
fix smtp.send hang on source error
|
||||||
add create field to FTP and SMTP and fix HTTP ugliness
|
add create field to FTP and SMTP and fix HTTP ugliness
|
||||||
clean timeout argument to open functions in SMTP, HTTP and FTP
|
clean timeout argument to open functions in SMTP, HTTP and FTP
|
||||||
|
3
NEW
3
NEW
@ -14,6 +14,9 @@ This is just a bug-fix/update release.
|
|||||||
* Improved: http.request is robust to evil servers that
|
* Improved: http.request is robust to evil servers that
|
||||||
send inappropriate 100-continue messages (David Burgess);
|
send inappropriate 100-continue messages (David Burgess);
|
||||||
|
|
||||||
|
* Fixed: http.request was using the old host header during
|
||||||
|
redirects (Florian Berger);
|
||||||
|
|
||||||
* Fixed: sample unix.c had fallen through the cracks
|
* Fixed: sample unix.c had fallen through the cracks
|
||||||
during development (Matthew Percival);
|
during development (Matthew Percival);
|
||||||
|
|
||||||
|
@ -172,6 +172,8 @@ header (William Trenker);
|
|||||||
<li> Improved: <tt>http.request</tt> is robust to evil
|
<li> Improved: <tt>http.request</tt> is robust to evil
|
||||||
servers that send inappropriate 100-continue messages
|
servers that send inappropriate 100-continue messages
|
||||||
(David Burgess);
|
(David Burgess);
|
||||||
|
<li> Fixed: <tt>http.request</tt> was using the old host header during
|
||||||
|
redirects (Florian Berger);
|
||||||
<li> Fixed: sample <tt>unix.c</tt> had fallen through the
|
<li> Fixed: sample <tt>unix.c</tt> had fallen through the
|
||||||
cracks during development (Matthew Percival);
|
cracks during development (Matthew Percival);
|
||||||
<li> Fixed: error code was not being propagated correctly in
|
<li> Fixed: error code was not being propagated correctly in
|
||||||
|
@ -261,7 +261,7 @@ function tredirect(reqt, location)
|
|||||||
local result, code, headers, status = trequest {
|
local result, code, headers, status = trequest {
|
||||||
-- the RFC says the redirect URL has to be absolute, but some
|
-- the RFC says the redirect URL has to be absolute, but some
|
||||||
-- servers do not respect that
|
-- servers do not respect that
|
||||||
url = url.absolute(reqt, location),
|
url = url.absolute(reqt.url, location),
|
||||||
source = reqt.source,
|
source = reqt.source,
|
||||||
sink = reqt.sink,
|
sink = reqt.sink,
|
||||||
headers = reqt.headers,
|
headers = reqt.headers,
|
||||||
|
Loading…
Reference in New Issue
Block a user