Index: sdk/lib/io/http_parser.dart |
diff --git a/sdk/lib/io/http_parser.dart b/sdk/lib/io/http_parser.dart |
index 5a726dafee91f94da0118d30f8514f6af9d6ccda..69d45056d829fcbd8cfbe371ee136ed9ad69d2d1 100644 |
--- a/sdk/lib/io/http_parser.dart |
+++ b/sdk/lib/io/http_parser.dart |
@@ -328,7 +328,7 @@ class _HttpParser { |
case _State.RESPONSE_LINE_ENDING: |
_expect(byte, _CharCode.LF); |
_messageType == _MessageType.RESPONSE; |
- _statusCode = parseInt( |
+ _statusCode = int.parse( |
new String.fromCharCodes(_method_or_status_code)); |
if (_statusCode < 100 || _statusCode > 599) { |
throw new HttpParserException("Invalid response status code"); |