Index: sdk/lib/io/http_parser.dart |
diff --git a/sdk/lib/io/http_parser.dart b/sdk/lib/io/http_parser.dart |
index d941aa40b63deef9958a9596286b596d2d55188b..09f06eaee38b5cff19d0d0095850d4c2a9ac0ddc 100644 |
--- a/sdk/lib/io/http_parser.dart |
+++ b/sdk/lib/io/http_parser.dart |
@@ -321,7 +321,7 @@ class _HttpParser extends Stream<_HttpIncoming> { |
// how the _HttpIncoming signals the parser. |
_socketSubscription = stream.listen( |
_onData, |
- onError: _onError, |
+ onError: _controller.addError, |
onDone: _onDone); |
} |
@@ -845,10 +845,6 @@ class _HttpParser extends Stream<_HttpIncoming> { |
_controller.close(); |
} |
- void _onError(e, [StackTrace stackTrace]) { |
- _controller.addError(e, stackTrace); |
- } |
- |
String get version { |
switch (_httpVersion) { |
case _HttpVersion.HTTP10: |