Merge pull request #75 from nickpalenchar/master

fixes #74 fallback for findEntryStatus when match is missing or other…
This commit is contained in:
Liyas Thomas 2019-08-28 06:57:47 +05:30 committed by GitHub
commit 0a4839eaf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -278,6 +278,10 @@ ol li {
background-color: #B71C1C;
}
.missing-data-response {
background-color: #676767;
}
fieldset#history {
.method-list-item {
position: relative;

View File

@ -249,6 +249,13 @@
statusCodeRegex: new RegExp(/[5][0-9]+/),
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 headers = xhr.getAllResponseHeaders().trim().split(/[\r\n]+/);