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


   # Bug report
   
   ## Describe the bug
   
   A clear and concise description of what the bug is.
   
   ## How to Reproduce
   
   ```
   Request URL: http://127.0.0.1:9000/apisix/admin/debug-request-forwarding
   Request Method: POST
   Reuqest Body: 
{"url":"http://httpbin.org/post","request_protocol":"http","method":"POST","body_params":{"some":"data"},"header_params":{"Content-Type":["application/x-www-form-urlencoded"]}}
   ```
   Result:
   
![image](https://user-images.githubusercontent.com/7396835/103514368-7129c580-4ea7-11eb-9ec9-a21133d4a132.png)
   
   
   Expected result: 
   ```
   {
     "args": {}, 
     "data": "", 
     "files": {}, 
     "form": {
       "some": "data"
     }, 
     "headers": {
       "Accept": "*/*", 
       "Accept-Encoding": "gzip, deflate", 
       "Content-Length": "9", 
       "Content-Type": "application/x-www-form-urlencoded", 
       "Host": "httpbin.org", 
       "User-Agent": "python-requests/2.21.0", 
       "X-Amzn-Trace-Id": "Root=1-5ff2cd52-10f44a401484d9d51360aea1"
     }, 
     "json": null, 
     "origin": "14.116.71.4", 
     "url": "http://httpbin.org/post";
   }
   ```


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