Index: sdk/lib/io/websocket_impl.dart |
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart |
index db69f44d01e11acf4026ac00eeee06c648c447d4..c7d9e10ef7137540195bac5a0ae399ef9da69ff7 100644 |
--- a/sdk/lib/io/websocket_impl.dart |
+++ b/sdk/lib/io/websocket_impl.dart |
@@ -385,7 +385,7 @@ class _WebSocketTransformerImpl implements WebSocketTransformer { |
response.contentLength = 0; |
response.close(); |
}); |
- return new Future.immediateError( |
+ return new Future.error( |
new WebSocketException("Invalid WebSocket upgrade request")); |
} |