Skip to content

Commit

Permalink
No md5 packages anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 28, 2025
1 parent 2aa32c5 commit 8cc6ce7
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 @@ -61,7 +61,7 @@ router.get("/robots.txt", function(req, res, next) {
router.get("/:hash{/:postfix}", function(req, res, next) {
let hash = req.params.hash || "";
let postfix = req.params.postfix || "send";
if(hash.length != 32 && hash.length != 64) //should be md5 or sha256
if(hash.length != 64) //should sha256
return next(createError(400, "Invalid hash length"));
return send_from_bucket(hash, postfix, res);
});
Expand Down

0 comments on commit 8cc6ce7

Please sign in to comment.