mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Better support for reading files with Response tag
This commit is contained in:
parent
bc54f269a8
commit
6bf2e1652a
@ -504,7 +504,7 @@ export function _actuallySend (
|
||||
|
||||
// Collect various things
|
||||
const result = lastCurlHeadersObject && lastCurlHeadersObject.result;
|
||||
const statusCode = result ? result.code : 0;
|
||||
const statusCode = result ? result.code : -1;
|
||||
const statusMessage = result ? result.reason : 'Unknown';
|
||||
|
||||
// Collect the headers
|
||||
|
@ -57,7 +57,7 @@ export default {
|
||||
throw new Error('No responses for request');
|
||||
}
|
||||
|
||||
if (!response.statusCode || response.statusCode < 100) {
|
||||
if (!response.statusCode) {
|
||||
throw new Error('No responses for request');
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ class StatusTag extends PureComponent {
|
||||
statusCodeToDisplay = '';
|
||||
break;
|
||||
default:
|
||||
colorClass = 'bg-danger';
|
||||
colorClass = 'bg-surprise';
|
||||
genericStatusMessage = 'UNKNOWN';
|
||||
statusCodeToDisplay = '';
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user