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

Unified Diff: lib/src/request.dart

Issue 1648723002: Fix the old-hijack test. (Closed) Base URL: git@github.com:dart-lang/shelf@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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/request.dart
diff --git a/lib/src/request.dart b/lib/src/request.dart
index b4d0e03c39f7d4651baef3d1386e94d3d34501a7..e0aa8ea0829630e310cf0eaf4f71396ed81da43d 100644
--- a/lib/src/request.dart
+++ b/lib/src/request.dart
@@ -246,7 +246,7 @@ class Request extends Message {
throw new StateError("This request can't be hijacked.");
}
- if (callback is ZoneUnaryCallback) {
+ if (callback is! ZoneBinaryCallback) {
var oldCallback = callback;
callback = (stream, sink) {
oldCallback(new StreamChannel<List<int>>(stream, sink));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698