idbeta opened a new issue #2392:
URL: https://github.com/apache/apisix/issues/2392


   ### Issue description
   I have a strange idea about uri, so I tested it, but it didn't work, pls 
help me out
   ```shell
   $ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '{"uri": 
"/hello-_~!*();:@&=+$,/[]", "upstream": {"nodes": {"127.0.0.1:9666": 1}, 
"type": "roundrobin"}}'
   HTTP/1.1 200 OK
   ... ...
   ```
   test route
   ```shell
   $ curl -i 
'http://127.0.0.1:9080/hello-_~%21%2a%28%29%3b%3a%40%26%3d%2b%24%2c/%5b%5d'
   HTTP/1.1 404 Not Found
   ... ...
   ```
   test the original address
   ```shell
   $ curl -i 
'http://127.0.0.1:9666/hello-_~%21%2a%28%29%3b%3a%40%26%3d%2b%24%2c/%5b%5d'
   HTTP/1.1 200 OK
   ... ..
   ```
   ### Environment
   
   * apisix version (cmd: `apisix version`):  master
   * OS: macos
   


----------------------------------------------------------------
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


Reply via email to