Skip to content
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

Ignore null Locale in MockHttpServletResponse #26493

Closed
sbrannen opened this issue Feb 2, 2021 · 0 comments
Closed

Ignore null Locale in MockHttpServletResponse #26493

sbrannen opened this issue Feb 2, 2021 · 0 comments
Assignees
Labels
in: test Issues in the test module in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Feb 2, 2021

This is a follow-up to #26488.

Although the Javadoc for javax.servlet.ServletResponse.setLocale(Locale) does not state how a null value for the supplied Locale should be handled, both Tomcat and Jetty simply ignore a null value.

We will therefore do the same in MockHttpServletResponse.

@sbrannen sbrannen added in: test Issues in the test module in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Feb 2, 2021
@sbrannen sbrannen added this to the 5.3.4 milestone Feb 2, 2021
@sbrannen sbrannen self-assigned this Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant