SoftInstigate / http-shell

HTTP Shell is a CLI tool based on the Kui framework that provides developers a modern alternative to http clients for interacting with APIs.
Apache License 2.0
12 stars 1 forks source link

fix: get media type is not parsed correctly #1

Closed myan9 closed 3 years ago

myan9 commented 3 years ago

Also fixes the wrong ordering in tsconfig.json

Screenshot 1 shows how body with json mediaType be color-coded and formatted correctly.

Screenshot 2 shows the experiment I did on http-shell get and help http-shell command with inline-sidecar and split.

Screenshot 3 shows that, with my fix, body with html/text mediaType will be rendered as html.

Screenshot 1: Screen Shot 2020-10-21 at 2 57 17 PM

Screenshot 2: Screen Shot 2020-10-21 at 2 56 36 PM

Screenshot 3: Screen Shot 2020-10-21 at 2 16 30 PM

ujibang commented 3 years ago

Cool!