Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Unified Diff: test/client_websites_test.dart

Issue 1578753002: Try to send EndStreamFlag together with headers (if possible) (Closed) Base URL: git@github.com:dart-lang/http2.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/streams/stream_handler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/client_websites_test.dart
diff --git a/test/client_websites_test.dart b/test/client_websites_test.dart
index c8ca6d616f59682dca600500a78d1b8308c95821..bed148b88fa13fa3560b920c3cb128379ccde2bd 100644
--- a/test/client_websites_test.dart
+++ b/test/client_websites_test.dart
@@ -124,6 +124,8 @@ Future<String> readBody(Response response) async {
var stream = response.stream;
if (response.headers['content-encoding']?.join('') == 'gzip') {
stream = stream.transform(GZIP.decoder);
+ } else if (response.headers['content-encoding']?.join('') == 'deflate') {
Søren Gjesse 2016/01/11 14:26:35 Separate change from what is in the description?
kustermann 2016/01/11 15:08:33 There is a test for twitter.com in this file, and
+ stream = stream.transform(ZLIB.decoder);
}
return await stream.transform(UTF8.decoder).join('');
}
« no previous file with comments | « lib/src/streams/stream_handler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698