mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #594] [MERGED] POST request body editor reacts to the content type #2733
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#2733
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/594
Author: @AndrewBastin
Created: 2/24/2020
Status: ✅ Merged
Merged: 2/24/2020
Merged by: @AndrewBastin
Base:
master← Head:feat/post-raw-type-handle📝 Commits (2)
5936a06Added editorutils file with a utility function to convert mimetype to editor modesfa339a5Updated POST request body to react to the Content Type📊 Changes
2 files changed (+16 additions, -1 deletions)
View changed files
➕
functions/editorutils.js(+11 -0)📝
pages/index.vue(+5 -1)📄 Description
The Raw Request Body editor for POST requests is set to JSON mode and only provided the syntax highlighting mode for JSON. This PR intends to add the ability to for the user to update the syntax highlighting by updating the Content-Type.
So, for example, if the POST Content-Type is set to
application/xml, the raw request editor updates the language mode to XML mode and if the request mode is set toapplication/json, it updates the mode to JSON Syntax Highlighting mode.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.