mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Some minor updates
This commit is contained in:
parent
3c02ff9cf7
commit
49652f105e
@ -67,7 +67,7 @@ export function _buildRequestConfig (renderedRequest, patch = {}) {
|
||||
}
|
||||
}
|
||||
config.formData = formData;
|
||||
} else if (renderedRequest.body.mimeType === CONTENT_TYPE_FILE) {
|
||||
} else if (renderedRequest.body.fileName) {
|
||||
config.body = fs.readFileSync(renderedRequest.body.fileName);
|
||||
} else {
|
||||
config.body = renderedRequest.body.text || '';
|
||||
|
@ -36,6 +36,10 @@ class Modal extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
isShown () {
|
||||
return this.state.open;
|
||||
}
|
||||
|
||||
show () {
|
||||
this.setState({open: true, zIndex: globalZIndex++});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user