Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jul 22, 2024
1 parent 676983e commit 522a8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function error_cb(status, next) {
router.get("/cdn/:hash/:file", function(req, res, next) {
let hash = req.params.hash || "";
let file = req.params.file || "";
let ref = req.query.ref ? atob(req.query.ref) || "unknown";
let ref = req.query.ref ? atob(req.query.ref) : "unknown";
if(hash.length != 32) //assume md5 for now
return next(createError(400, "Invalid hash length"));
send_from_bucket(hash, file, res, ref).catch(error_cb(400, next));
Expand Down

0 comments on commit 522a8a4

Please sign in to comment.