How to URL encode query strings using request transformer #9613
Unanswered
rhargreaves
asked this question in
Help
Replies: 1 comment
-
Actually, the URI will always be URL encoded to make sure it contains no illegal characters. Quick thought:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We're using the
request-transformer
plugin as so:However, there doesn't seem to be a way to properly URL encode the
query_params.foo
orquery_params.bar
variables. This means it cannot be used with any query string which might contain Unicode characters. We've tried usinguntrusted_lua
but it doesn't seem to allow us to access any global variables (such asrequire
orngx
)As such, we've had to make a custom plugin to solve this particular issue, but its not a generic solution.
We're using version 2.5.0.
Beta Was this translation helpful? Give feedback.
All reactions