When a filter function creates a ServerRequestWrapper from the ServerRequest passed to it, and passes the wrapper into the next() function, then the RouterFunctionDsl passes on the original ServerRequest, not the wrapper. This PR fixes the issue and verifies with a test.
Comment From: ShindongLee
I fixed same bugs in RouterFunctionDsl (WebMVC) and coRouterFunctionDsl (WebFlux) in #26857. Idk why i missed this file XD
Comment From: poutsma
Thanks for submitting a PR, our apologies for taking so long to resolve it.
Comment From: ijonathanc
Ok, thanks.