diff --git a/client/components/Postman/Postman.js b/client/components/Postman/Postman.js index 62759e64..a85e8240 100644 --- a/client/components/Postman/Postman.js +++ b/client/components/Postman/Postman.js @@ -406,7 +406,7 @@ export default class Run extends Component { const { method, domains, pathParam, pathname, query, headers, bodyForm, currDomain, bodyType, resHeader } = this.state; const hasPlugin = this.hasCrossRequestPlugin(); - const isResJson = resHeader['content-type'] && resHeader['content-type'].indexOf('application/json') !== -1 + const isResJson = resHeader && resHeader['content-type'] && resHeader['content-type'].indexOf('application/json') !== -1 let path = pathname; pathParam.forEach(item => { path = path.replace(`:${item.name}`, item.value || `:${item.name}`);