artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

HTTP response header parsing should be case insensitive #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by yan...@google.com on 20 Apr 2012 at 6:35

GoogleCodeExporter commented 9 years ago
http://codereview.appspot.com/6089044/

Original comment by yan...@google.com on 20 Apr 2012 at 6:37

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 23 Apr 2012 at 10:03