-
Notifications
You must be signed in to change notification settings - Fork 6k
Added CompositeHeaderWriter #6455
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
Conversation
a6c09c6
to
92b3170
Compare
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.
Thanks for yet another PR, @ankurpathak! You totally rock!
I've left some feedback inline.
web/src/main/java/org/springframework/security/web/header/writers/CompositeHeaderWriter.java
Outdated
Show resolved
Hide resolved
|
||
HeaderWriterResponse(HttpServletRequest request, HttpServletResponse response, | ||
List<HeaderWriter> headerWriters) { | ||
CompositeHeaderWriter compositeHeaderWriter) { |
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.
Would you please do two indents for continuations? Even with method parameters, this is the formatting convention.
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.
Would you please do two indents for continuations? Even with method parameters, this is the formatting convention.
I did it. But please confirm it and if its not correct pls give example. I really face problem in understanding indentation.
web/src/main/java/org/springframework/security/web/header/HeaderWriterFilter.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/header/writers/CompositeHeaderWriter.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/header/writers/CompositeHeaderWriter.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/header/HeaderWriterFilter.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/header/HeaderWriterFilter.java
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/header/writers/CompositeHeaderWriter.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/header/writers/CompositeHeaderWriter.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/header/writers/CompositeHeaderWriter.java
Show resolved
Hide resolved
c6212ba
to
d7c52f5
Compare
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.
Let's just remove DelegatingRequestMatcherHeaderWriter from the commit, and then we are good to go. Thanks, again, @ankurpathak!
@@ -1,5 +1,5 @@ | |||
/* | |||
* Copyright 2002-2013 the original author or authors. | |||
* Copyright 2002-2019 the original author or authors. |
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.
What I meant to say was that we should remove this file from the commit. It will work nicely with CompositeHeaderWriter
without modification.
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.
File Removed.
1. Added new CompositeHeaderWriter 2. Improvement in HeaderWriterFilter using CompositeHeaderWriter. Fixes: 6453
d7c52f5
to
39aa36b
Compare
@ankurpathak thanks again for the PR! This has now been merged into |
CompositeHeaderWriter.
Fixes: gh-6453