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: runtime/bin/http_parser.dart

Issue 10911120: Cleanup and fixes to some dart:io files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « runtime/bin/http.dart ('k') | runtime/bin/string_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http_parser.dart
diff --git a/runtime/bin/http_parser.dart b/runtime/bin/http_parser.dart
index 14cc30d6ea4a2bf0de56774df769fb48866e85a0..2224e4b8716971efef2a71c5c902ae7004f49bed 100644
--- a/runtime/bin/http_parser.dart
+++ b/runtime/bin/http_parser.dart
@@ -533,7 +533,7 @@ class _HttpParser {
index--;
break;
- case _state = _State.FAILURE:
+ case _State.FAILURE:
// Should be unreachable.
assert(false);
break;
@@ -562,7 +562,7 @@ class _HttpParser {
return index - offset;
}
- int connectionClosed() {
+ void connectionClosed() {
if (_state < _State.FIRST_BODY_STATE) {
_state = _State.FAILURE;
// Report the error through the error callback if any. Otherwise
@@ -599,10 +599,8 @@ class _HttpParser {
switch (_httpVersion) {
case _HttpVersion.HTTP10:
return "1.0";
- break;
case _HttpVersion.HTTP11:
return "1.1";
- break;
}
return null;
}
« no previous file with comments | « runtime/bin/http.dart ('k') | runtime/bin/string_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698