POST request body editor reacts to the content type#594
POST request body editor reacts to the content type#594AndrewBastin merged 2 commits intohoppscotch:masterfrom
Conversation
DeepCode's analysis on #fa339a found:
💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues. |
|
Hey @AndrewBastin, TravisCI finished with status TravisBuddy Request Identifier: 2a3c0eb0-56c0-11ea-8ad8-19cca21d7143 |
|
@liyasthomas you should look into why the CI giving hick-ups all the time.... 🙄 |
|
it's an issue with CI itself. 😞 it'll always pass on 2nd run. but don't know why this is happening. I'll issue a compliant. |
|
Hey @AndrewBastin, TravisBuddy Request Identifier: 55a53600-56c8-11ea-8ad8-19cca21d7143 |
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.