-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: HttpResponse GZip content encoding equality change #843
fix: HttpResponse GZip content encoding equality change #843
Conversation
google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java
Show resolved
Hide resolved
google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java
Outdated
Show resolved
Hide resolved
google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a test case.
…p-content-encoding # Conflicts: # google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java
Please see the latest commit. |
google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java
Outdated
Show resolved
Hide resolved
google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java
Outdated
Show resolved
Hide resolved
google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The values should be case insensitive. See https://tools.ietf.org/html/rfc7230#section-3.2.4
"All transfer-coding names are case-insensitive". transfer-coding name is the name of the encoding such as gzip, not the name of HTTP header field.
google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java
Outdated
Show resolved
Hide resolved
google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java
Show resolved
Hide resolved
google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java
Show resolved
Hide resolved
google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java
Show resolved
Hide resolved
google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java
Outdated
Show resolved
Hide resolved
google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java
Outdated
Show resolved
Hide resolved
… (googleapis#843) Source-Link: googleapis/synthtool@466412a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Fixes #842 by having HttpResponse compare (case insensitive) the content-encoding against "gzip" and "x-gzip" (HTTP 1.1).