spring-cloud-gateway icon indicating copy to clipboard operation
spring-cloud-gateway copied to clipboard

ProxyExchange.uri() removes query string in original request

Open coolgod opened this issue 5 years ago • 2 comments

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?

coolgod avatar Jan 27 '21 01:01 coolgod

I believe you have to manually pass them.

spencergibb avatar Mar 31 '21 20:03 spencergibb

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.

bergerst avatar Jan 04 '23 14:01 bergerst