I'm fetching HTTP headers with Spring's RestTemplate.
HTTP headers are case insensitive, but the documentation for HttpHeaders doesn't seem to acknowledge this.
A quick test shows that things are working as expected...
HttpHeaders headers = restTemplate.headForHeaders(url);
Long a = Long.parseLong(headers.getFirst("Content-Length"));
Long b = Long.parseLong(headers.getFirst("content-length"));
assert( a.equals(b) ); // passes
Can I be sure that this test will pass under all Spring configurations?