Fix download counting (#309)

This commit is contained in:
Danielle authored and GitHub committed 2022-02-26 08:37:24 -07:00
1 parent 3f671b918a
commit b7c7c0e862
5 files changed
+194 -129

No files matched your search

+3 -2
View File
@@ -2,8 +2,9 @@ use actix_web::guard::GuardContext;
pub const ADMIN_KEY_HEADER: &str = "Modrinth-Admin";
pub fn admin_key_guard(ctx: &GuardContext) -> bool {
let admin_key = std::env::var("LABRINTH_ADMIN_KEY")
.expect("No admin key provided, this should have been caught by check_env_vars");
let admin_key = std::env::var("LABRINTH_ADMIN_KEY").expect(
"No admin key provided, this should have been caught by check_env_vars",
);
ctx.head()
.headers()