Skip to content

Commit

Permalink
fix: Correctly display svg's in response preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-treason committed Jan 11, 2025
1 parent b3e620c commit 71f2d57
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ function determinePreviewByHeader(

case contentType.includes('application/pdf'):
return { pretty: null, preview: 'pdf' };
case contentType.includes('image/svg'):
return { pretty: 'xml', preview: 'html' };
case contentType.includes('image'):
return { pretty: null, preview: 'image' };
case contentType.includes('video'):
Expand Down

0 comments on commit 71f2d57

Please sign in to comment.