http.client, fix GETs after POSTs redirects
Before this change, after a post is responded to by a 301 redirect, the next GET had the "content-length: XX" and "content-type: application/x-www-form-urlencoded" http headers. Detected by running "http" test while using squid 3.3.8 which returns a 411 error in this case.locals-and-roots
parent
e881f3d5a6
commit
4ad5071b70
|
@ -91,7 +91,7 @@ SYMBOL: redirects
|
|||
redirects get request get redirects>> < [
|
||||
request get clone
|
||||
response "location" header redirect-url
|
||||
response code>> 307 = [ "GET" >>method ] unless
|
||||
response code>> 307 = [ "GET" >>method f >>post-data ] unless
|
||||
quot (with-http-request)
|
||||
] [ too-many-redirects ] if ; inline recursive
|
||||
|
||||
|
|
Loading…
Reference in New Issue