mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
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:
parent
c6bc30bab7
commit
b17a6ba51d
1 changed files with 6 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue