mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
add 504 to expected return codes, don't cache unexpected responses
This commit is contained in:
parent
cc2840ae4b
commit
1ecf3c0122
@ -90,6 +90,7 @@ exp.get_from_options = function(rid, url, options, callback) {
|
|||||||
case 429: // this shouldn't usually happen, but occasionally does
|
case 429: // this shouldn't usually happen, but occasionally does
|
||||||
case 500:
|
case 500:
|
||||||
case 503:
|
case 503:
|
||||||
|
case 504:
|
||||||
// we don't want to cache this
|
// we don't want to cache this
|
||||||
body = null;
|
body = null;
|
||||||
break;
|
break;
|
||||||
@ -98,6 +99,7 @@ exp.get_from_options = function(rid, url, options, callback) {
|
|||||||
// Probably 500 or the likes
|
// Probably 500 or the likes
|
||||||
logging.error(rid, "Unexpected response:", code, body);
|
logging.error(rid, "Unexpected response:", code, body);
|
||||||
}
|
}
|
||||||
|
body = null;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user