mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
actually do send etag on error, but send "none" etag when no (=default) image is sent
This commit is contained in:
parent
0dfc91f948
commit
a9a0032b1f
@ -49,7 +49,7 @@ module.exports = function(req, res) {
|
||||
if (err) {
|
||||
logging.error(uuid + " " + err);
|
||||
}
|
||||
etag = !err && hash && hash.substr(0, 32) || "none";
|
||||
etag = image && hash && hash.substr(0, 32) || "none";
|
||||
var matches = req.headers["if-none-match"] == '"' + etag + '"';
|
||||
if (image) {
|
||||
var http_status = 200;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user