juzhiyuan opened a new issue #1832:
URL: https://github.com/apache/incubator-apisix/issues/1832


   ### Issue description
   I use the dashboard demo to update a route, when disabling Redirect, API 
still return the redirect field.
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):
   * OS:
   
   ### Minimal test code / Steps to reproduce the issue
   ```sh
   curl 
'https://api.apisix.dev/apisix/admin/routes/1f4eaccd-bdee-4472-b298-1cf846bd9e3f'
 \
     -X 'PUT' \
     -H 'authority: api.apisix.dev' \
     -H 'accept: application/json' \
     -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36' \
     -H 'content-type: application/json;charset=UTF-8' \
     -H 'origin: https://dashboard.apisix.dev' \
     -H 'sec-fetch-site: same-site' \
     -H 'sec-fetch-mode: cors' \
     -H 'sec-fetch-dest: empty' \
     -H 'referer: 
https://dashboard.apisix.dev/dashboard/routes/1f4eaccd-bdee-4472-b298-1cf846bd9e3f/edit'
 \
     -H 'accept-language: en,zh-CN;q=0.9,zh;q=0.8' \
     --data-binary 
'{"name":"deployd22","desc":"达达22","protocols":["https"],"hosts":["shaoyaoju.org"],"paths":["/*"],"methods":["GET","HEAD","POST","PUT","DELETE","OPTIONS","PATCH"],"upstream_protocol":"keep","upstream_id":"0a605704-dd3a-4f3f-a157-03db7a2e5abe","plugins":{},"uris":["/*"],"vars":[["arg_acc","~=","2222"]],"upstream_header":{}}'
 \
     --compressed
   ```
   
   ```sh
   curl 
'https://api.apisix.dev/apisix/admin/routes/1f4eaccd-bdee-4472-b298-1cf846bd9e3f'
 \
     -H 'authority: api.apisix.dev' \
     -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36' \
     -H 'accept: */*' \
     -H 'origin: https://dashboard.apisix.dev' \
     -H 'sec-fetch-site: same-site' \
     -H 'sec-fetch-mode: cors' \
     -H 'sec-fetch-dest: empty' \
     -H 'referer: 
https://dashboard.apisix.dev/dashboard/routes/1f4eaccd-bdee-4472-b298-1cf846bd9e3f/edit'
 \
     -H 'accept-language: en,zh-CN;q=0.9,zh;q=0.8' \
     --compressed
   ```
   
   ```json
   
{"name":"deployd22","desc":"达达22","methods":["GET","HEAD","POST","PUT","DELETE","OPTIONS","PATCH"],"uris":["/*"],"hosts":["shaoyaoju.org"],"protocols":["websocket","https"],"redirect":{},"vars":[["arg_acc","~=","2222"]],"upstream_id":"0a605704-dd3a-4f3f-a157-03db7a2e5abe","upstream_protocol":"keep","plugins":{}}
   ```


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