fixes #74 fallback for findEntryStatus when match is missing or otherwise invalid
This commit is contained in:
@@ -278,6 +278,10 @@ ol li {
|
|||||||
background-color: #B71C1C;
|
background-color: #B71C1C;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.missing-data-response {
|
||||||
|
background-color: #676767;
|
||||||
|
}
|
||||||
|
|
||||||
fieldset#history {
|
fieldset#history {
|
||||||
.method-list-item {
|
.method-list-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -241,6 +241,13 @@
|
|||||||
statusCodeRegex: new RegExp(/[5][0-9]+/),
|
statusCodeRegex: new RegExp(/[5][0-9]+/),
|
||||||
className: 'sv-error-response'
|
className: 'sv-error-response'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// this object is a catch-all for when no other objects match and should always be last
|
||||||
|
name: 'unknown',
|
||||||
|
statusCodeRegex: new RegExp(/.*/),
|
||||||
|
className: 'missing-data-response'
|
||||||
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
const parseHeaders = xhr => {
|
const parseHeaders = xhr => {
|
||||||
const headers = xhr.getAllResponseHeaders().trim().split(/[\r\n]+/);
|
const headers = xhr.getAllResponseHeaders().trim().split(/[\r\n]+/);
|
||||||
|
|||||||
Reference in New Issue
Block a user