hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[BUG] When http method change by POST to GET,the request body didn't delete

Open Kylin-Guo opened this issue 1 year ago • 3 comments

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

Kylin-Guo avatar Jul 17 '24 07:07 Kylin-Guo

Can you describe the scene?

jiangsh-ui avatar Jul 18 '24 09:07 jiangsh-ui

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 avatar Jul 19 '24 03:07 Kylin-Guo

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

JuJinPark avatar Feb 20 '25 03:02 JuJinPark