[PR #3906] [bug]: Setting body type to none sets the content type in the request to application/x-www-form-urlencoded #3685 #4584

Open
opened 2026-03-17 02:06:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3906
Author: @ialloyd
Created: 3/18/2024
Status: 🔄 Open

Base: mainHead: fix/content-type-none-issue


📝 Commits (3)

  • 191aad0 [bug]: Setting body type to none sets the content type in the request to application/x-www-form-urlencoded #3685
  • f9d44ae [bug]: Setting body type to none sets the content type in the request to application/x-www-form-urlencoded #3685
  • e9dc561 [bug]: Setting body type to none sets the content type in the request to application/x-www-form-urlencoded #3685

📊 Changes

1 file changed (+11 additions, -6 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/http/Body.vue (+11 -6)

📄 Description

This PR addresses an issue where the 'Content-Type' header was incorrectly set to 'application/x-www-form-urlencoded' when the body type was set to 'none'. The changes ensure that the 'Content-Type' header is removed as expected in this scenario.

I would appreciate if you could review the changes and provide your valuable feedback. Thank you!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3906 **Author:** [@ialloyd](https://github.com/ialloyd) **Created:** 3/18/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/content-type-none-issue` --- ### 📝 Commits (3) - [`191aad0`](https://github.com/hoppscotch/hoppscotch/commit/191aad049b9a6b59255f0c4da4c652deff53f77d) [bug]: Setting body type to none sets the content type in the request to application/x-www-form-urlencoded #3685 - [`f9d44ae`](https://github.com/hoppscotch/hoppscotch/commit/f9d44ae0762955192ffa0613ab8461ff65413273) [bug]: Setting body type to none sets the content type in the request to application/x-www-form-urlencoded #3685 - [`e9dc561`](https://github.com/hoppscotch/hoppscotch/commit/e9dc56179aba1384188b79b8ed180b9fff185763) [bug]: Setting body type to none sets the content type in the request to application/x-www-form-urlencoded #3685 ### 📊 Changes **1 file changed** (+11 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/http/Body.vue` (+11 -6) </details> ### 📄 Description This PR addresses an issue where the 'Content-Type' header was incorrectly set to 'application/x-www-form-urlencoded' when the body type was set to 'none'. The changes ensure that the 'Content-Type' header is removed as expected in this scenario. I would appreciate if you could review the changes and provide your valuable feedback. Thank you! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#4584
No description provided.