Skip to content

[web]bugfix: clear request body when http method changes to GET#4163

Open
Wyh-max-star wants to merge 1 commit into
apache:masterfrom
Wyh-max-star:fix-2298-clear-request-body
Open

[web]bugfix: clear request body when http method changes to GET#4163
Wyh-max-star wants to merge 1 commit into
apache:masterfrom
Wyh-max-star:fix-2298-clear-request-body

Conversation

@Wyh-max-star

Copy link
Copy Markdown

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.

@Wyh-max-star Wyh-max-star force-pushed the fix-2298-clear-request-body branch from 23fe7e6 to dcc6d54 Compare June 18, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant