opti: raw

This commit is contained in:
zwjamnsss 2017-08-25 09:49:02 +08:00
parent 4f28b9f82d
commit 4870462c16

View File

@ -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}`);