spacewander commented on issue #6486: URL: https://github.com/apache/apisix/issues/6486#issuecomment-1057900813
@Belyenochi @shuaijinchao I am afraid arg_xxx should be case-sensitive. See https://stackoverflow.com/a/24700171. > So the query part of the URI as defined by the spec for the HTTP scheme is case-sensitive. It is a limitation of Nginx that it handles all the variables in case-insensitive way. In fact, OpenResty's `get_uri_args` handles it correctly: ``` server { listen 9981; location / { content_by_lua_block { local cjson = require("cjson") ngx.say(cjson.encode(ngx.req.get_uri_args())) } } } ``` with `curl '127.0.0.1:9981?a=2&A=1'`, it gets `{"A":"1","a":"2"}`. It would be good if we can follow the standard and get rid of Nginx's weird behavior. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
