Browse Source

Merge branch 'master' into bug/3706-enum-param

bubble
kyle 7 years ago
committed by GitHub
parent
commit
4f1a8abd0d
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/core/components/response-body.jsx

+ 4
- 4
src/core/components/response-body.jsx View File

@@ -49,10 +49,10 @@ export default class ResponseBody extends React.Component {
// Download
} else if (
/^application\/octet-stream/i.test(contentType) ||
headers["Content-Disposition"] && (/attachment/i).test(headers["Content-Disposition"]) ||
headers["content-disposition"] && (/attachment/i).test(headers["content-disposition"]) ||
headers["Content-Description"] && (/File Transfer/i).test(headers["Content-Description"]) ||
headers["content-description"] && (/File Transfer/i).test(headers["content-description"])) {
(headers["Content-Disposition"] && (/attachment/i).test(headers["Content-Disposition"])) ||
(headers["content-disposition"] && (/attachment/i).test(headers["content-disposition"])) ||
(headers["Content-Description"] && (/File Transfer/i).test(headers["Content-Description"])) ||
(headers["content-description"] && (/File Transfer/i).test(headers["content-description"]))) {

let contentLength = headers["content-length"] || headers["Content-Length"]
if ( !(+contentLength) ) return null


Loading…
Cancel
Save