Skip to content

Conversation

@egsavage
Copy link
Contributor

Fixes #842 by having HttpResponse compare (case insensitive) the content-encoding against "gzip" and "x-gzip" (HTTP 1.1).

@egsavage egsavage requested a review from a team as a code owner October 14, 2019 23:38
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 14, 2019
Copy link
Contributor

@elharo elharo left a 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
@egsavage
Copy link
Contributor Author

This needs a test case.

Please see the latest commit.

@chingor13 chingor13 changed the title Issue #842 - HttpResponse GZip content encoding equality change fix: HttpResponse GZip content encoding equality change Oct 22, 2019
Copy link
Contributor

@elharo elharo left a 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.

@elharo elharo added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 28, 2019
@kokoro-team kokoro-team removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Oct 28, 2019
@elharo elharo added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 29, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 29, 2019
@chingor13 chingor13 merged commit 9c73e1d into googleapis:master Oct 29, 2019
clundin25 pushed a commit to clundin25/google-http-java-client that referenced this pull request Aug 11, 2022
… (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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HttpResponse uses contains where it needs equals

5 participants