| Index: runtime/bin/http_parser.dart
|
| diff --git a/runtime/bin/http_parser.dart b/runtime/bin/http_parser.dart
|
| index 2224e4b8716971efef2a71c5c902ae7004f49bed..571ce702496d493f2e83a5491d0470bb0a4311d6 100644
|
| --- a/runtime/bin/http_parser.dart
|
| +++ b/runtime/bin/http_parser.dart
|
| @@ -234,6 +234,9 @@ class _HttpParser {
|
|
|
| case _State.REQUEST_LINE_URI:
|
| if (byte == _CharCode.SP) {
|
| + if (_uri_or_reason_phrase.length == 0) {
|
| + throw new HttpParserException("Invalid request URI");
|
| + }
|
| _state = _State.REQUEST_LINE_HTTP_VERSION;
|
| _httpVersionIndex = 0;
|
| } else {
|
|
|