diff --git a/app/ui/components/viewers/response-viewer.js b/app/ui/components/viewers/response-viewer.js index f52c9dfab..f8424bf59 100644 --- a/app/ui/components/viewers/response-viewer.js +++ b/app/ui/components/viewers/response-viewer.js @@ -188,7 +188,7 @@ class ResponseViewer extends PureComponent { // Try to detect content-types if there isn't one if (!mode) { - if (body.match(/^\s*<\?xml version="\d\.\d".*\?>/)) { + if (body.match(/^\s*<\?xml [^?]*\?>/)) { mode = 'application/xml'; } else { try {