Closed jpraet closed 2 months ago
We could align with this zalando rule: http://opensource.zalando.com/restful-api-guidelines/#132
WG agreed to align with Zalando's guideline. I'll work out a PR.
created PR: https://github.com/belgif/rest-guide/pull/129
According to the spec, HTTP headers are case-insensitive.
The section REST guide section that covers HTTP headers should probably mention this?
Some middleware or tools can alter the casing of the HTTP headers, e.g. normalize them to lowercase. The application should therefore always treat HTTP headers in case-insensitive manner. e.g. in java: HttpServletRequest.getHeader(name) is OK, but watch out with methods like HttpServletRequest.getHeaderNames() because there it is your own responsibility to handle case-insensitivity.