
|
If you were logged in you would be able to see more operations.
|
|
|
|
addHeader(name, value) calls toLowerCase() before saving the header in the Set, but getHeader(name) does not check if the supplied parameter is lowercase or not.
The patch supplied provides both the unittest and the fix.
|
|
Description
|
addHeader(name, value) calls toLowerCase() before saving the header in the Set, but getHeader(name) does not check if the supplied parameter is lowercase or not.
The patch supplied provides both the unittest and the fix. |
Show » |
|
|
Provides a simple test case that shows that if you do MockHttpServletRequest.addHeader("User-Agent", "something") then getHeader("User-Agent") returns null.
The fix simply tries again after toLowerCase() if the first attempt returns null.