Add TODO to respect FLAG_ALLOW_GZIP in CronetDataSource

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=169927989
This commit is contained in:
olly 2017-09-25 10:44:28 -07:00 committed by Oliver Woodman
parent c6bc30bab7
commit b17a6ba51d

View file

@ -460,6 +460,12 @@ public class CronetDataSource extends UrlRequest.Callback implements HttpDataSou
}
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.
if (dataSpec.postBody != null) {
requestBuilder.setHttpMethod("POST");