desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: curl parse body error

Open sdvdxl opened this issue 2 years ago • 1 comments

What happened?

paste curl content parse error, should be json body not form.

Steps to reproduce?

curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
  "name": "Route for consumer request rate limiting",
  "methods": [
    "GET"
  ],
  "uri": "/api/products",
    "plugins": {
        "key-auth": {}
    },
  "upstream": {
    "type": "roundrobin",
    "nodes": {
      "productapi:80": 1
    }
  }
}'


![image](https://user-images.githubusercontent.com/3821540/231923715-a496da1b-7353-4eef-bfa7-30b0425996a5.png)
![image](https://user-images.githubusercontent.com/3821540/231923778-9f71a2d2-3c7f-4104-99ed-5c514a3175ab.png)

What did you expect to happen?

image

Platform

macOS

HTTPie Desktop version

版本2023.1.2 (2023.1.2)

Relevant log output

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

sdvdxl avatar Apr 14 '23 02:04 sdvdxl

Steps to reproduce?

image image

sdvdxl avatar Apr 14 '23 02:04 sdvdxl