mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
remove redundant etag modifications
helm and size are URL parameters. An Etag is an identifier for a single URL, not multiple
This commit is contained in:
parent
37d1f3c2da
commit
6945cda8d6
@ -82,7 +82,7 @@ router.get('/avatars/:uuid.:ext?', function(req, res) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
logging.error(err);
|
logging.error(err);
|
||||||
}
|
}
|
||||||
etag = hash && hash.substr(0, 32) + (helm ? "-helm-" : "-face-") + size || "none";
|
etag = hash && hash.substr(0, 32) || "none";
|
||||||
var matches = req.get("If-None-Match") == '"' + etag + '"';
|
var matches = req.get("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