Fix for #3742, Request wrapping fixed for Spring Security