Re: [whatwg/fetch] Should Content-Type header be stripped when redirecting from POST to GET? (#609)

Okay, so what I think we should here is:

1. Define "request-body-header name" in https://fetch.spec.whatwg.org/#terminology-headers and make it the list of headers given by @mnot above.
2. Then in https://fetch.spec.whatwg.org/#concept-http-redirect-fetch change the "If either actualResponse’s status is 301 or 302 and request’s method is `POST`, or actualResponse’s status is 303" step to make the actions ("set request’s method to `GET` and request’s body to null") take place as two steps in a nested list and add a step that removes headers from the header list that match the earlier introduced definition.

I'm happy to help out with the tests.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/609#issuecomment-367275272

Received on Wednesday, 21 February 2018 10:12:17 UTC