-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#13] Add prettyfier based on content-type #17
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17 +/- ##
==========================================
- Coverage 97.75% 95.94% -1.81%
==========================================
Files 21 22 +1
Lines 445 469 +24
Branches 57 30 -27
==========================================
+ Hits 435 450 +15
- Misses 6 14 +8
- Partials 4 5 +1 ☔ View full report in Codecov by Sentry. |
d868a15
to
fa22509
Compare
39b3d56
to
aca1430
Compare
I changed @vaszig initial idea a bit, to create a |
Nice, thanks Daniel! Will let Steven review |
} | ||
} else if (contentType.includes('xml')) { | ||
try { | ||
outputValue = prettifyXml(responseBody); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to work for me locally (e.g. if I make a request to https://www.w3schools.com/xml/note.xml)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #13
Added
Prettify
button in the admin change view, to get a better view of the output only if it is 'XMLor
JSON`.es: XML
es: JSON