New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 592700 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Strip Content-Encoding response headers in CronetHttpURLConnection

Project Member Reported by xunji...@chromium.org, Mar 7 2016

Issue description

Cronet decompresses response body before returning it to consumers, we should strip Content-Encoding headers so that consumers wouldn't try to decompress for a second time.
 
Status: Started (was: Assigned)
CL in review https://codereview.chromium.org/1779473002/
Status: Fixed (was: Started)

Comment 4 by mef@chromium.org, Mar 14 2016

Labels: Merge-Request-50

Comment 5 by tin...@google.com, Mar 14 2016

Labels: -Merge-Request-50 Merge-Approved-50 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M50 (branch: 2661)

Comment 6 by mef@chromium.org, Mar 14 2016

Helen, do we need it in M50?
If we do, do you want me to merge it into 2661?
Yes, please. That'll be great. Thanks!
Project Member

Comment 8 by bugdroid1@chromium.org, Mar 14 2016

Labels: -merge-approved-50 merge-merged-2661
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d25d5a281c748d5f9375972ecddd4306082386ff

commit d25d5a281c748d5f9375972ecddd4306082386ff
Author: Misha Efimov <mef@google.com>
Date: Mon Mar 14 20:01:16 2016

Strip content-encoding response header from CronetHttpURLConnection response.

Cronet decompresses response body before returning it to consumers, we should
strip Content-Encoding headers so that consumers wouldn't try to decompress for
a second time.

BUG= 592700 

Review URL: https://codereview.chromium.org/1779473002

Cr-Commit-Position: refs/heads/master@{#379903}
(cherry picked from commit cee2840c4bcd51313e33f0ab215413f9a8f70480)

R=xunjieli@chromium.org

Review URL: https://codereview.chromium.org/1801993002 .

Cr-Commit-Position: refs/branch-heads/2661@{#220}
Cr-Branched-From: ef6f6ae5e4c96622286b563658d5cd62a6cf1197-refs/heads/master@{#378081}

[modify] https://crrev.com/d25d5a281c748d5f9375972ecddd4306082386ff/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java
[add] https://crrev.com/d25d5a281c748d5f9375972ecddd4306082386ff/components/cronet/android/test/assets/test/gzipped.html
[add] https://crrev.com/d25d5a281c748d5f9375972ecddd4306082386ff/components/cronet/android/test/assets/test/gzipped.html.mock-http-headers
[modify] https://crrev.com/d25d5a281c748d5f9375972ecddd4306082386ff/components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetHttpURLConnectionTest.java

Sign in to add a comment