[BUG] When http method change by POST to GET,the request body didn't delete
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
This will cause the monitoring to return an HTTP 415 error unless you chose POST again and the request body is manually deleted
Expected Behavior
No response
Steps To Reproduce
No response
Environment
HertzBeat version(s):v1.6.0
Debug logs
No response
Anything else?
No response
Can you describe the scene?
Can you describe the scene?
Just as I said, in an HTTP API, if you choose POST first and the request body contains something, then when you want to change to GET, it will return an HTTP 415 error.
@Kylin-Guo Could you provide more details about the bug? Specifically, can you outline the exact steps to reproduce it? For example, if I make a request to /monitor/blabla, what should I do next to trigger the issue?
This would help me investigate it more effectively. Thanks!