HTTP response header parsing should be case insensitive #91
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
From yan...@google.com on April 20, 2012 11:35:52
Version of google-http-java-client (e.g. 1.5.0-beta)? 1.8.0-beta Java environment (e.g. Java 6, Android 2.3, App Engine)? All? Describe the problem. For example, note how the ETag field is declared:
/** {@code "ETag"} header. */
@key("ETag")
private String etag;
We will correctly parse an HTTP response header like this:
ETag: "abc"
We will also correctly parse an HTTP response header like this:
etag: "abc"
But we won't parse any other capitalization, e.g.:
ETAG: "abc" How would you expect it to be fixed? Any capitalization should parse correctly.
Original issue: http://code.google.com/p/google-http-java-client/issues/detail?id=91
The text was updated successfully, but these errors were encountered: