Skip to content

HeaderWriterFilter writes headers at beginning #6509

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

Closed
wants to merge 1 commit into from

Conversation

ankurpathak
Copy link
Contributor

Add support for HeaderWriterFilter to write headers at the beginning of the request

Fixes: gh-6501

@ankurpathak
Copy link
Contributor Author

@jzheaux I am not getting any Idea for tests. Please give some idea how I can write test.

Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, again, @ankurpathak! I've left some feedback inline.

@@ -565,4 +567,20 @@ class HeadersConfigurerTests extends BaseSpringSpec {
responseHeaders == ['Strict-Transport-Security': 'max-age=31536000 ; includeSubDomains ; preload']
}

def "headers written at beginning of request"() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this a Java test. We are in the process of coverting the Groovy tests over to Java, so we don't want to make more work for ourselves.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Add support for HeaderWriterFilter to write headers at the beginning of the request

Fixes: spring-projectsgh-6501
@jzheaux
Copy link
Contributor

jzheaux commented Feb 18, 2019

@ankurpathak Thanks for the PR! This is now merged into master via ac13b55.

Also, I added a polish commit of 2b960b0 for the Java Config test - please take a look at the commit message for future reference.

@jzheaux jzheaux closed this Feb 18, 2019
@jzheaux jzheaux added this to the 5.2.0.M2 milestone Apr 14, 2019
@jzheaux jzheaux added status: duplicate A duplicate of another issue type: enhancement A general enhancement in: web An issue in web modules (web, webmvc) labels Apr 14, 2019
@jzheaux jzheaux self-assigned this Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for HeaderWriterFilter to write headers at the beginning of the request
2 participants