mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
don't send etag on error, improves #48
This commit is contained in:
parent
3d1ad616bf
commit
0dfc91f948
@ -49,7 +49,7 @@ module.exports = function(req, res) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
logging.error(uuid + " " + err);
|
logging.error(uuid + " " + err);
|
||||||
}
|
}
|
||||||
etag = hash && hash.substr(0, 32) || "none";
|
etag = !err && hash && hash.substr(0, 32) || "none";
|
||||||
var matches = req.headers["if-none-match"] == '"' + etag + '"';
|
var matches = req.headers["if-none-match"] == '"' + etag + '"';
|
||||||
if (image) {
|
if (image) {
|
||||||
var http_status = 200;
|
var http_status = 200;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user