[GH-ISSUE #2859] [bug]: Deleted form parameters are still sent. #920

Closed
opened 2026-03-16 17:42:17 +03:00 by kerem · 1 comment
Owner

Originally created by @mfusigh on GitHub (Nov 21, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2859

Originally assigned to: @amk-dev on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Submitting a request after deleting form data variables still submits the deleted variables.

Steps to reproduce

  1. Create and send POST request with several multipart/form-data variables.
  2. Delete a variable using the trash icon next to it.
  3. Send the request again and the deleted variable is still sent.

I did a sample request to Google sending three variables in the body, then deleted the "c" variable by using the trash icon, then sent the request. After the first and second request I click on "Show code" and got this back for both:

first request:
curl --request POST \
  --url https://google.com/ \
  --header 'Authorization: Bearer ' \
  --header 'Content-Type: multipart/form-data' \
  --form a=1 \
  --form b=2 \
  --form c=3


second request after deleting "c":
curl --request POST \
  --url https://google.com/ \
  --header 'Authorization: Bearer ' \
  --header 'Content-Type: multipart/form-data' \
  --form a=1 \
  --form b=2 \
  --form c=3

The second request should not have had the "c=3" line since it was not represented anywhere in the UI anymore.

Environment

Production

Version

Cloud

Originally created by @mfusigh on GitHub (Nov 21, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2859 Originally assigned to: @amk-dev on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior Submitting a request after deleting form data variables still submits the deleted variables. ### Steps to reproduce 1. Create and send POST request with several multipart/form-data variables. 2. Delete a variable using the trash icon next to it. 3. Send the request again and the deleted variable is still sent. I did a sample request to Google sending three variables in the body, then deleted the "c" variable by using the trash icon, then sent the request. After the first and second request I click on "Show code" and got this back for both: ``` first request: curl --request POST \ --url https://google.com/ \ --header 'Authorization: Bearer ' \ --header 'Content-Type: multipart/form-data' \ --form a=1 \ --form b=2 \ --form c=3 second request after deleting "c": curl --request POST \ --url https://google.com/ \ --header 'Authorization: Bearer ' \ --header 'Content-Type: multipart/form-data' \ --form a=1 \ --form b=2 \ --form c=3 ``` The second request should not have had the "c=3" line since it was not represented anywhere in the UI anymore. ### Environment Production ### Version Cloud
kerem 2026-03-16 17:42:17 +03:00
Author
Owner

@AndrewBastin commented on GitHub (Nov 25, 2022):

Fixed in #2861

<!-- gh-comment-id:1326972139 --> @AndrewBastin commented on GitHub (Nov 25, 2022): Fixed in #2861
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#920
No description provided.