Better support for reading files with Response tag

This commit is contained in:
Gregory Schier 2017-08-01 11:20:47 -07:00
parent bc54f269a8
commit 6bf2e1652a
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

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

View File

@ -38,7 +38,7 @@ class StatusTag extends PureComponent {
statusCodeToDisplay = '';
break;
default:
colorClass = 'bg-danger';
colorClass = 'bg-surprise';
genericStatusMessage = 'UNKNOWN';
statusCodeToDisplay = '';
break;