-
Notifications
You must be signed in to change notification settings - Fork 61
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
Request for Header Field normalisation #60
Comments
@kjetilk, As far as I understand what is written in RFC 7234 §4.1 Calculating Secondary Keys with Vary, it does not say anything about the normalisation of the VARY response header itself. That can be just a list of nominated header-field names, in any order or capitalisation. The RFC does explain what can be done with the presented request-header fields and/or associated request-header fields to see if it is a match or not:
Normalisation of the VARY header 'ansich' is not the issue you have to deal with. But what you typically want is the normalisation of each and every header-field mentioned. You may be looking for something like I think, because of misinterpretation of the RFC, this specific issue may be closed, and maybe a new one could be opened 'HTTP::Headers normilized headers request' |
Yes, indeed, a Wouldn't it be better to just change the title of the issue than taking the extra effort to open a new issue? |
Sounds like a plan, but than I think we should ask @oalders to update the title. As that does not reflect the request you really have: What about: Title: Request for Header Field normalisationReasoning:In order to make comparison of two Header Field values more convenient (and correct) it would be great to have a normalisation function in HTTP::Headers, like: my $normalized_value = $h->normalized_header( 'accept_language'); Normalisation is mentioned in RFC 7234 §4.1 Calculating Secondary Keys with Vary. And could involve:
However, re-ordering and capitalisation can be Header Field dependent and should not break semantics Well, I think I just wrote out a new issue ? |
Hehe, right, indeed, that is a well formulated new issue :-) Feel free to post it like that. |
Thanks everyone! |
Migrated from rt.cpan.org#105516 (status was 'new')
Requestors:
From [email protected] on 2015-06-26 22:49:46:
The text was updated successfully, but these errors were encountered: