mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #693] [MERGED] Fix raw input (JSON) #2797
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#2797
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/693
Author: @leomp12
Created: 3/20/2020
Status: ✅ Merged
Merged: 3/22/2020
Merged by: @liyasthomas
Base:
master← Head:fix/raw-input📝 Commits (9)
86ee80fMerge pull request #2 from liyasthomas/masterdc771f5fix(req-body): ensure raw input if!canListParameters9a4e64efix: fixcanListParameter(undefined) tocanListParametersc370ee8fix:canListParametersprop must return90bd8d4style(js): minor code style fix76786f7fix(raw-input): allow list parameters for json, set true when raw params is changed3f9ae7ffix(raw-input): allow list parameter for any content type ending with 'json'2a8ba00Merge branch 'master' into fix/raw-inputed4f1feUpdate index.vue📊 Changes
1 file changed (+20 additions, -14 deletions)
View changed files
📝
pages/index.vue(+20 -14)📄 Description
Related issue: https://github.com/liyasthomas/postwoman/issues/597
As I've commented on commit
github.com/liyasthomas/postwoman@b14adc29f5, the problem with JSON body and raw input is happening again after this commit, maybe I've named things badly (canListParameters) and you misunderstood me, so I'm suggesting another fix 😛I've realized that it's getting
rawInputoriginal state from Vuex, and then it could happen to have JSON content with raw input disabled and without the toggle component, this way it would not be possible to enable raw input at all...Now I'm making sure
rawInputis true alwayscanListParametersis false, and kept (revert)canListParametersto be true only withapplication/x-www-form-urlencoded.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.