Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement containsLast in HttpFields #10340
Implement containsLast in HttpFields #10340
Changes from all commits
a932e24
04c8ab1
fb918c2
e92de8f
6fc4951
d9d6dd9
ff73edf
03459de
46b11cc
88cc66c
9e936ee
64b2722
c5cd147
e409f44
6f6b60b
999b2b9
d7e8c7a
7d6d400
050f351
3057ca5
7accc62
ddaf2ae
2a83e03
2b71af4
42d297f
9f89b98
f8047cf
c2ca524
30d6f60
366cc07
7bd6c7d
9a8dd7b
2b67179
c2f6717
484c2c0
2287796
96b8f37
09db3bb
7348bf9
e5d8859
61e03bb
2409241
66c8303
ced7ad9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we do this in a better way? Here we always do an
endsWith
, then we possibly just create aQuotedCSV
and aequalsIgnoreCase
anyway.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating a QuotedCSV is very expensive compared to a quick endsWith check. Very few actual headers will be lists... vanishingly few. We only have the QuotedCSV path for correctness
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be consistent with
previous()
I'd check here for==
.Or both get the inequality operators.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was no change here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not really symmetric. It is plausible that _size might shrink or that index is miscalculated, so index can plausibly be larger than size. But at the other end, a negative size or index is not really plausible. But can change previous to
<= 0
.