From 1bbcf5ff2363cd32e40f35c6c689acf2adfe7424 Mon Sep 17 00:00:00 2001 From: jvyden Date: Tue, 23 Nov 2021 17:12:50 -0500 Subject: [PATCH] Make calculatedHash lowercase --- ProjectLighthouse/Controllers/ResourcesController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse/Controllers/ResourcesController.cs b/ProjectLighthouse/Controllers/ResourcesController.cs index 1a36395b..1b645471 100644 --- a/ProjectLighthouse/Controllers/ResourcesController.cs +++ b/ProjectLighthouse/Controllers/ResourcesController.cs @@ -70,7 +70,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers return this.UnprocessableEntity(); } - string calculatedHash = HashHelper.Sha1Hash(file.Data); + string calculatedHash = HashHelper.Sha1Hash(file.Data).ToLower(); if (calculatedHash != hash) { Logger.Log