membphis commented on issue #2378: URL: https://github.com/apache/apisix/issues/2378#issuecomment-706653895
your case is wrong. here is a correct example, @idbeta you can take a look at it: ``` # should use the original uri value curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d ' { "uri": "/hello\r\n", "upstream": {"nodes": {"127.0.0.1:9666": 1}, "type": "roundrobin"} }' # when we try to hit the route, we should use URL encode way. `\r` -> `%0d`, `\n` -> `%0a` curl -i 'http://127.0.0.1:9080/hello%0d%0a' ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org