]> gitweb.factorcode.org Git - factor.git/commit - basis/http/client/client.factor
http.client, fix GETs after POSTs redirects
authorJon Harper <jon.harper87@gmail.com>
Tue, 16 Feb 2016 13:28:59 +0000 (14:28 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Mar 2016 20:46:55 +0000 (13:46 -0700)
commit4ad5071b70f25240fa1a4a095859f49f075945bb
tree9d00b49d3756b7ed5d6b9c2e8f081d7e8adb7746
parente881f3d5a62ae7ed4aea627b22d3e01932bbab49
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.
basis/http/client/client.factor