You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MockHttpServletResponse.getDateHeader fails with NPE for non-existing header [SPR-16160] #20708
MockHttpServletResponse.getDateHeader doesn't check for the existence of the corresponding header and ends up calling DateFormat.parse with a null value. Aligned with HttpServletRequest.getDateHeader(), it should simply return -1 in such a case.
As far as possible, we're also using MockHttpServletResponse.getDateHeader within our own tests now instead of trying to match the concrete date presentation in the textual header value.
Activity
spring-projects-issues commentedon Nov 5, 2017
Juergen Hoeller commented
As far as possible, we're also using
MockHttpServletResponse.getDateHeaderwithin our own tests now instead of trying to match the concrete date presentation in the textual header value.