-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Optimize warning header de-duplication #37725
Changes from 2 commits
de66ae3
488e5fc
bb8744d
a17adcf
a98049e
81b7d2a
9b02391
6a788a1
4ffd045
6e1ecec
90cdc65
94b4687
03ff725
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -232,7 +232,7 @@ void deprecated(final Set<ThreadContext> threadContexts, final String message, f | |
while (iterator.hasNext()) { | ||
try { | ||
final ThreadContext next = iterator.next(); | ||
next.addResponseHeader("Warning", warningHeaderValue, DeprecationLogger::extractWarningValueFromWarningHeader); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder whether we need Then we can also get rid of In order to keep this PR small this could be done in a follow-up though as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I was going to remove the dead code in a follow-up. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perfect. Then I'll approve now. |
||
next.addResponseHeader("Warning", warningHeaderValue); | ||
} catch (final IllegalStateException e) { | ||
// ignored; it should be removed shortly | ||
} | ||
|
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.
I factor this change out to #37768.