Merge pull request #3441 from owenconti/bug/3435-image-png-responses

Fixes #3435 - Fix rendering of image/* content types
This commit is contained in:
shockey
2017-07-21 19:53:19 -07:00
committed by GitHub

View File

@@ -40,7 +40,7 @@ export default class ResponseBody extends React.Component {
// Image
} else if (/^image\//i.test(contentType)) {
bodyEl = <img src={ url } />
bodyEl = <img src={ window.URL.createObjectURL(content) } />
// Audio
} else if (/^audio\//i.test(contentType)) {