Normalize headers
Closed this issue · 2 comments
dvv commented
#req.headers
should be lower-cased, imho, to ease pattern matching. what do you think?
dvv commented
update: while standard headers are handled by erlang:decode_packet()
and normalized to Camel-Case-Form, custom headers ain't. of particular case is x-http-method-override, e.g. http://fandry.blogspot.ru/2012/03/x-http-header-method-override-and-rest.html
knutin commented
Elli does not change the header keys in any way. If a header is not recognized by erlang:decode_packet/3
it is given to the user just as the client sent it.
This is a conscious choice. I want to keep the critical path as clean as I can. If the user wants everything to be a specific case, the user will have to take care of converting.