desktop
desktop copied to clipboard
[Bug]: curl parse body error
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
}
}
}'


What did you expect to happen?

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
Steps to reproduce?
