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

Unified Diff: lib/src/streams/stream_handler.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 | « no previous file | test/client_websites_test.dart » ('j') | test/client_websites_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/streams/stream_handler.dart
diff --git a/lib/src/streams/stream_handler.dart b/lib/src/streams/stream_handler.dart
index 3cdec55bd6ef436de2dc7c7648adf97d61165639..5a78aaa4d5ad799c5093bd316166e81ff620536e 100644
--- a/lib/src/streams/stream_handler.dart
+++ b/lib/src/streams/stream_handler.dart
@@ -197,10 +197,7 @@ class StreamHandler extends Object with TerminatableMixin, ClosableMixin {
TransportStream newStream(List<Header> headers, {bool endStream: false}) {
return ensureNotTerminatedSync(() {
var stream = newLocalStream();
- _sendHeaders(stream, headers);
- if (endStream) {
- _handleOutgoingClose(stream);
- }
+ _sendHeaders(stream, headers, endStream: endStream);
return stream;
});
}
« no previous file with comments | « no previous file | test/client_websites_test.dart » ('j') | test/client_websites_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698