commit | 034157644847b4de26db1417c8f4114902f94271 | [log] [tgz] |
---|---|---|
author | Timm Preetz <52437+tp@users.noreply.github.com> | Sat Aug 08 20:25:12 2020 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Sat Aug 08 20:25:12 2020 +0000 |
tree | 537a84ca49094d5a87df9604b76604446fe03934 | |
parent | 570a75be7ea5b1bcd91149599cd3c7523e9a9fd3 [diff] |
Remove duplicate check for space character (32) `_CharCode.SP` is 32, which is already covered by the `byte > 31` part. Closes https://github.com/dart-lang/sdk/pull/40929 https://github.com/dart-lang/sdk/pull/40929 GitOrigin-RevId: bc2c0ea6d7e86a4a06135737da497f593ee9a03d Change-Id: I5214775f76912e9985328f5c61b4a4ec4ef6b637 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138787 Reviewed-by: Jonas Termansen <sortie@google.com> Commit-Queue: Jonas Termansen <sortie@google.com>
diff --git a/sdk/lib/_http/http_parser.dart b/sdk/lib/_http/http_parser.dart index 9459789..cb13b24 100644 --- a/sdk/lib/_http/http_parser.dart +++ b/sdk/lib/_http/http_parser.dart
@@ -978,7 +978,6 @@ static bool _isValueChar(int byte) { return (byte > 31 && byte < 128) || - (byte == _CharCode.SP) || (byte == _CharCode.HT); }