Commit b17a6ba5 by olly Committed by Oliver Woodman

Add TODO to respect FLAG_ALLOW_GZIP in CronetDataSource

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=169927989
parent c6bc30ba
...@@ -460,6 +460,12 @@ public class CronetDataSource extends UrlRequest.Callback implements HttpDataSou ...@@ -460,6 +460,12 @@ public class CronetDataSource extends UrlRequest.Callback implements HttpDataSou
} }
requestBuilder.addHeader("Range", rangeValue.toString()); requestBuilder.addHeader("Range", rangeValue.toString());
} }
// TODO: Uncomment when https://bugs.chromium.org/p/chromium/issues/detail?id=767025 is fixed
// (adjusting the code as necessary).
// Force identity encoding unless gzip is allowed.
// if (!dataSpec.isFlagSet(DataSpec.FLAG_ALLOW_GZIP)) {
// requestBuilder.addHeader("Accept-Encoding", "identity");
// }
// Set the method and (if non-empty) the body. // Set the method and (if non-empty) the body.
if (dataSpec.postBody != null) { if (dataSpec.postBody != null) {
requestBuilder.setHttpMethod("POST"); requestBuilder.setHttpMethod("POST");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment