Fix for #3742, Request wrapping fixed for Spring Security

@emrahkocaman OK, got it