Hxhong commented on issue #4110:
URL: https://github.com/apache/apisix/issues/4110#issuecomment-826288713


   > <img alt="截屏2021-04-25 下午3 14 35" width="545" 
src="https://user-images.githubusercontent.com/52862365/115984317-185a7600-a5d9-11eb-80a2-d9253c09102d.png";>
   > 
   > You can try to add more log output here to get a detailed comparison of 
uri rewriting. For example, print `upstream_uri` and compare with 
`ctx.var.upstream_uri`.
   
   
   
   > > 
![image](https://user-images.githubusercontent.com/42258295/115848274-46637d00-a456-11eb-87e7-6e2e6e7e1d1e.png)
   > > the first image I print the param 'upstream_uri' before I add other 
params into uri
   > > 
![image](https://user-images.githubusercontent.com/42258295/115848425-6dba4a00-a456-11eb-9d7e-abe974292651.png)
   > > the second image i print the param 'ctx.var.upstream_uri' after I add 
two params, 'token' and 'srcSystemCode'. But you can see in the log, the param 
'request' without my params.
   > 
   > From these two pictures, `upstream_uri` is different from 
`ctx.var.upstream_uri`, it seems that `uri` has been rewritten.
   
   yes, 'uri' has been rewritten, but the actual request doesn't take the param 
'token' with it. You can try it with my demo.


-- 
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:
[email protected]


Reply via email to