mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #2191] [MERGED] feat: override content-type #3669
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#3669
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/2191
Author: @anwarulislam
Created: 3/22/2022
Status: ✅ Merged
Merged: 3/29/2022
Merged by: @liyasthomas
Base:
main← Head:feat/override-contenttype📝 Commits (10+)
3dbd972feat: content-type override feature added2175e14main branch syncedf24355eMerge branch 'hoppscotch:main' into feat/override-contenttype55da36dfeat: content-type override feature issue fixed4ab3b16Merge branch 'hoppscotch:main' into feat/override-contenttype23c677bfeat: reorder key-value entries (#2189)770c3f1refactor: revamped tab system1f2fb0frefactor: enable new tab component35571fffix: tab switching side effect4764141fix: tab deleting side effect📊 Changes
6 files changed (+115 additions, -35 deletions)
View changed files
📝
packages/hoppscotch-app/components/http/Body.vue(+67 -11)📝
packages/hoppscotch-app/components/http/RequestOptions.vue(+10 -2)📝
packages/hoppscotch-app/components/smart/EnvInput.vue(+2 -0)📝
packages/hoppscotch-app/components/smart/Tabs.vue(+28 -20)📝
packages/hoppscotch-app/helpers/utils/EffectiveURL.ts(+4 -1)📝
packages/hoppscotch-app/locales/en.json(+4 -1)📄 Description
Closes #2121
Description
Overriding
Content-Typein Headers.Checks
Additional Information
Previously, we were automatically assigning
Content-Typefrom the body. No one could able to override theContent-Typefrom the header if they needed. They could be able to write theContent-Typebut that wouldn't be prioritized. In this PR we basically fixed the issue. Checking if there's anyContent-Typein headers then we're not adding Request Body's content-type with the request. Rather, theContent-Typefrom the header is being added in the actual request.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.