Closed
Description
Steven Schlansker opened SPR-16138 and commented
MockHttpServletRequest has a serverName
field, but the getter does additional logic around parsing the Host:
header. This leads to inconsistency when getRequestURL
reflects a different serverName
than getServerName
does.
Affects: 4.3.12
Issue Links:
- MockHttpServletRequest should honor "Host" header in getServerName() and getServerPort() [SPR-12088] #16704 MockHttpServletRequest should honor "Host" header in getServerName() and getServerPort()
- MockHttpServletResponse.getDateHeader fails with NPE for non-existing header [SPR-16160] #20708 MockHttpServletResponse.getDateHeader fails with NPE for non-existing header
Referenced from: commits 9ca4de1, 0edf4d6
Backported to: 4.3.13