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

Unified Diff: sdk/lib/io/http_parser.dart

Issue 12918002: Allow an empty HTTP resason phrase (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | tests/standalone/io/regress_9194_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_parser.dart
diff --git a/sdk/lib/io/http_parser.dart b/sdk/lib/io/http_parser.dart
index c008f349987e5d0e4026e2e9c4ce9cac4d7b8079..047f37a513dc792b356ea093c5190be602cd1fc3 100644
--- a/sdk/lib/io/http_parser.dart
+++ b/sdk/lib/io/http_parser.dart
@@ -420,9 +420,6 @@ class _HttpParser
case _State.RESPONSE_LINE_REASON_PHRASE:
if (byte == _CharCode.CR) {
- if (_uri_or_reason_phrase.length == 0) {
- throw new HttpParserException("Invalid response reason phrase");
- }
_state = _State.RESPONSE_LINE_ENDING;
} else {
if (byte == _CharCode.CR || byte == _CharCode.LF) {
« no previous file with comments | « no previous file | tests/standalone/io/regress_9194_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698