| Code-Review | +1 |
produce, rather than what the RFC specifies should be accepted.Could you like to a bug?
Could you link to the "prior parser change"?
bool maybeExpectChar(int charCode) {There's only one call site of this left now, you may inline it into `expectChar`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
produce, rather than what the RFC specifies should be accepted.Could you like to a bug?
Could you link to the "prior parser change"?
Done
There's only one call site of this left now, you may inline it into `expectChar`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: sdk/lib/_http/http_date.dart
Insertions: 3, Deletions: 7.
@@ -150,16 +150,12 @@
onError(source, start, end);
}
- bool maybeExpectChar(int charCode) {
+ void expectChar(int charCode) {
if (index < end && source.codeUnitAt(index) == charCode) {
index++;
- return true;
+ } else {
+ throwError();
}
- return false;
- }
-
- void expectChar(int charCode) {
- if (!maybeExpectChar(charCode)) throwError();
}
// Detects one of three recognized formats.
```
Fix cookie-date parsing to use the correct algorithm.
A prior parser change made the parsing more restrictive,
only accepting the dart formats that a cookie creator should
produce, rather than what the RFC specifies should be accepted.
Now implements the specified algorithm again.
Bug: https://github.com/dart-lang/sdk/issues/62721
Prior over-optimisitc breaking change: https://dart-review.googlesource.com/c/sdk/+/448383
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |