Re-apply compressionState changes. (#34341)
This re-applies the changes that were made in #33697 and #33729, but which were reverted in #33792 and #33790, respectively due to the Dart SDK not having received the update within Google yet. The SDK has now rolled, so these changes can be re-applied. https://github.com/flutter/flutter/issues/32374 https://github.com/flutter/flutter/issues/33791
This commit is contained in:
@@ -1770,20 +1770,10 @@ class _MockHttpResponse extends Stream<List<int>> implements HttpClientResponse
|
||||
@override
|
||||
int get contentLength => -1;
|
||||
|
||||
// TODO(tvolkert): Update (flutter/flutter#33791)
|
||||
/*
|
||||
@override
|
||||
HttpClientResponseCompressionState get compressionState {
|
||||
return HttpClientResponseCompressionState.decompressed;
|
||||
}
|
||||
*/
|
||||
@override
|
||||
dynamic noSuchMethod(Invocation invocation) {
|
||||
if (invocation.memberName == #compressionState) {
|
||||
return null;
|
||||
}
|
||||
return super.noSuchMethod(invocation);
|
||||
}
|
||||
|
||||
@override
|
||||
List<Cookie> get cookies => null;
|
||||
|
||||
Reference in New Issue
Block a user