[GH-ISSUE #752] Request headers kept same after changing request type #261

Closed
opened 2026-03-16 14:17:04 +03:00 by kerem · 2 comments
Owner

Originally created by @bilencekic on GitHub (Apr 10, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/752

Describe the bug
I have 2 request get and post. GET is using X-CSRF-TOKEN = FETCH parameter to get token from server and POST is using X-CSRF-TOKEN = <TOKEN_VALUE> .
Due to header values kept same, i can't have GET and POST with different parameters, i need to change manually everytime.

To Reproduce
Steps to reproduce the behavior:

  1. Go to URL bar and simply call a GET request with a custom header
  2. Save the request.
  3. change request to POST
  4. See the request header is still same and cannot have different request header between requests.

Expected behavior
Headers should be belong to each saved request and should be cleared for each request type.

Originally created by @bilencekic on GitHub (Apr 10, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/752 **Describe the bug** I have 2 request get and post. GET is using X-CSRF-TOKEN = FETCH parameter to get token from server and POST is using X-CSRF-TOKEN = <TOKEN_VALUE> . Due to header values kept same, i can't have GET and POST with different parameters, i need to change manually everytime. **To Reproduce** Steps to reproduce the behavior: 1. Go to URL bar and simply call a GET request with a custom header 2. Save the request. 3. change request to POST 4. See the request header is still same and cannot have different request header between requests. **Expected behavior** Headers should be belong to each saved request and should be cleared for each request type.
kerem 2026-03-16 14:17:04 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@liyasthomas commented on GitHub (Apr 13, 2020):

The current state is preserved for easy reference to request configuration. Please manually save the GET and POST request once and click the saved request to restore it.

<!-- gh-comment-id:612704890 --> @liyasthomas commented on GitHub (Apr 13, 2020): The current state is preserved for easy reference to request configuration. Please manually save the `GET` and `POST` request once and click the saved request to restore it.
Author
Owner

@bilencekic commented on GitHub (Apr 13, 2020):

Sorry i think my bad. After saving parameters, i noticed parameters were kept same but it was a glitch i think. I can save request with different header parameters now (somehow strange).
Thanks

<!-- gh-comment-id:612705427 --> @bilencekic commented on GitHub (Apr 13, 2020): Sorry i think my bad. After saving parameters, i noticed parameters were kept same but it was a glitch i think. I can save request with different header parameters now (somehow strange). Thanks
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#261
No description provided.