yasser-mas2 edited a comment on issue #5654:
URL: https://github.com/apache/apisix/issues/5654#issuecomment-985090922


   @tzssangglass  Simply we are trying to reroute an URL to an internal server 
by replacing ( deleting ) endpoint prefix 
   
   E.g /api/groups/... -> my.internal.server/groups/.... 
   
   so we have used `redirect` plugin by matching `regex_uri`  
`/api(/v1/groups/.*) => replaced with $1 group1 ), but it seems that `redirect` 
plugin is decoding URL to match the regex but not encoding it again 
   
   I'm calling this endpoint `/api/groups/<Number>` so HTTP client ( Postman ) 
encoded the `<>` characters to be `/api/groups/%3CNumber%3E`, so I'm assuming 
that APISIX gateway plugin to remove `/api` from the request and forward to 
`/groups/%3CNumber%3E` **but** actually it forward the request to the correct 
internal server but decoding the encoded characters so the request submitted to 
the internal service as `/groups/<Number>` not `/groups/%3CNumber%3E` 


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to