Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[gateway] add an option to encode outgoing request #2557
By default, the gateway encode/decode query parameters received in each request before send them to the backend.
Most of the time, it doesn't matter. But sometimes it causes errors.
We think that the gateway must be as transparent as possible and this behavior must not be the default behavior.
So we change the default behavior on how query parameters are handled and we will provide a script to configure legacy apis during the upgrade to configure them with the old mode.
We introduce 2 options :
By default, you should not need those options. The gateway will send request with the same encoding they received.
Here are tests to understand how the gateway worked previously and how it works now :
Using the dynamic-routing policy