Wyh-max-star opened a new pull request, #4163: URL: https://github.com/apache/hertzbeat/pull/4163
### What changed Clear the request body when the HTTP method is changed from POST to GET in the HTTP/API monitor form. ### Why Fixes #2298. Previously, when users changed the HTTP method from POST to GET, the previously entered request body could still remain in the form and be submitted with the GET configuration. ### How tested * Added/updated the related monitor form unit test. * Manually verified that changing the HTTP method from POST to GET clears the request body. * Verified that switching back to POST still allows editing the request body. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
