-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3xx redirects - request formation #38
Comments
Well, the issue here is that the HTTP specs really say almost nothing about how the redirect happens (what header fields to include, for instance). If it did, then yes, this should be covered as well. |
Yes, that's the focus. Perhaps a starting point would be to talk about how the HTTP-defined headers and other protocol artefacts are copied / not copied / modified when following a redirect -- even if for some we have to say "depends upon the application", so applications know they have to cover this. |
Discussed in Montreal; support for trying. |
Seems reasonable, but where? At the top of 3xx section? |
in bkk: agreed to add more explanatory language; discussion contained references to the case of relative uris after redirects |
For reference, the relevant part of fetch. Waiting for #165 to sort out hop-by-hop headers. |
rough proposal: When automatically following a redirected request, a User Agent SHOULD resend the original request message with the following modifications:
|
Note whatwg/fetch#944 for some drawbacks. |
0 -- Need to decide when to automatically redirect for a new 3xx. Triggered by presence of "location"? |
0 - yes, but ultimately the decision is in the client's hands; i.e., we can't make any requirements here. 1 - yes 10 -- yes |
@annevk I think we can address that with some general language to the effect that the overriding principle is: things automatically added by the implementation need to be removed and re-added as appropriate, whereas things added by the user (caller, developer, etc.) need to be preserved -- with potential exceptions for security purposes, such as Will start a PR. |
see whatwg/fetch#609
The text was updated successfully, but these errors were encountered: