Merge branch 'feat/binary-response' of https://github.com/AndrewBastin/postwoman into feat/binary-response

This commit is contained in:
Liyas Thomas
2020-06-22 13:01:18 +05:30

View File

@@ -158,7 +158,7 @@ export default {
if (this.$refs.previewFrame.getAttribute("data-previewing-url") === this.url) return if (this.$refs.previewFrame.getAttribute("data-previewing-url") === this.url) return
// Use DOMParser to parse document HTML. // Use DOMParser to parse document HTML.
const previewDocument = new DOMParser().parseFromString( const previewDocument = new DOMParser().parseFromString(
this.response.body, this.responseBodyText,
this.responseType this.responseType
) )
// Inject <base href="..."> tag to head, to fix relative CSS/HTML paths. // Inject <base href="..."> tag to head, to fix relative CSS/HTML paths.