spring-cloud-gateway
spring-cloud-gateway copied to clipboard
ProxyExchange.uri() removes query string in original request
Exactly same issue as this close one: https://github.com/spring-cloud/spring-cloud-gateway/issues/1406
Per @spencergibb :
Have you tried the uri(URI) method?
I don't see a big difference between uri(URI) and uri(String). My question is that, do I have to manaully pass query strings into uri() method, or is there a way to be agnostic about query string and preserve them from the original request and only change the request path?
I believe you have to manually pass them.
I'm currently facing the same problem with Reflection being the only way to access the original query parameters. See the linked PR for a fix.