[PR #1703] [MERGED] fix: prevent overwrite of content type #3453

Closed
opened 2026-03-17 01:03:59 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/1703
Author: @nelsontky
Created: 6/5/2021
Status: Merged
Merged: 6/6/2021
Merged by: @liyasthomas

Base: mainHead: fix/update-content-type


📝 Commits (4)

  • 862f5a8 fix: prevent overwrite of content type when method changes and update input field when content type changes
  • 2b73fe8 refactor: remove unused function parameters
  • a81e00e fix: allow autocomplete component to update when value prop changes
  • 373b0a3 patch: set application/json as content-type for methods except POST, PUT, etc by default

📊 Changes

2 files changed (+5 additions, -2 deletions)

View changed files

📝 components/smart/AutoComplete.vue (+3 -0)
📝 pages/index.vue (+2 -2)

📄 Description

This PR fixes issue #1691. This fix prevents the changing of HTTP method to overwrite the content type of a request if the content type is already set. Moreover, the AutoComplete component watches for updates to its value prop so as to update the input field contents when the value prop changes.


🔄 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/1703 **Author:** [@nelsontky](https://github.com/nelsontky) **Created:** 6/5/2021 **Status:** ✅ Merged **Merged:** 6/6/2021 **Merged by:** [@liyasthomas](https://github.com/liyasthomas) **Base:** `main` ← **Head:** `fix/update-content-type` --- ### 📝 Commits (4) - [`862f5a8`](https://github.com/hoppscotch/hoppscotch/commit/862f5a87e46d9241686401efee6670405a7cfb05) fix: prevent overwrite of content type when method changes and update input field when content type changes - [`2b73fe8`](https://github.com/hoppscotch/hoppscotch/commit/2b73fe8c3c25924609bad173d9754a69cc341c3c) refactor: remove unused function parameters - [`a81e00e`](https://github.com/hoppscotch/hoppscotch/commit/a81e00e38ee6096a9426ad18991fcab53b3b4245) fix: allow autocomplete component to update when value prop changes - [`373b0a3`](https://github.com/hoppscotch/hoppscotch/commit/373b0a32ae722bef352cbe48b2938e1199f49e19) patch: set application/json as content-type for methods except POST, PUT, etc by default ### 📊 Changes **2 files changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `components/smart/AutoComplete.vue` (+3 -0) 📝 `pages/index.vue` (+2 -2) </details> ### 📄 Description This PR fixes issue #1691. This fix prevents the changing of HTTP method to overwrite the content type of a request if the content type is already set. Moreover, the `AutoComplete` component watches for updates to its `value` prop so as to update the input field contents when the `value` prop changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:03:59 +03:00
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#3453
No description provided.