Btw. same goes for 308 :) Norbert
Am 29.04.2015 um 11:44 schrieb Sven Van Caekenberghe <sven@stfx.eu>:
Hi Norbert,
On 28 Apr 2015, at 22:55, Norbert Hartl <norbert@hartl.name> wrote:
Hi Sven,
I have a topic for your todo list :) If an http client encounters a redirect with status code 307 it should redirect using the same method and entity as it got in the initial request. Now the client turns the request into a GET request.
What do you think?
Norbert
You are right, this should be added.
There is only one way to keep a todo list short (in #bleedingEdge):
=== Name: Zinc-HTTP-SvenVanCaekenberghe.426 Author: SvenVanCaekenberghe Time: 29 April 2015, 11:42:28.173752 am UUID: ae602342-e209-4a88-bf07-8a87776cc095 Ancestors: Zinc-HTTP-SvenVanCaekenberghe.425
Modify ZnClient>>#prepareRedirect to implement 307 behavior (keep method and entity as is)
Add ZnClientTests>>#testRelativeRedirect307 === Name: Zinc-Tests-SvenVanCaekenberghe.225 Author: SvenVanCaekenberghe Time: 29 April 2015, 11:42:46.710579 am UUID: f9f4164f-0885-4aaf-89db-84f0aa24cde3 Ancestors: Zinc-Tests-SvenVanCaekenberghe.224
Modify ZnClient>>#prepareRedirect to implement 307 behavior (keep method and entity as is)
Add ZnClientTests>>#testRelativeRedirect307 ===
Does this work for you ?
Sven