From 79d394274207ebdd27c9c5fb9e9289d80a0df385 Mon Sep 17 00:00:00 2001 From: Ethan O'Brien Date: Fri, 18 Oct 2024 21:59:33 -0500 Subject: [PATCH] Change header for browser check --- src/router.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.rs b/src/router.rs index 9ab8d80..2cc3ec6 100644 --- a/src/router.rs +++ b/src/router.rs @@ -173,7 +173,7 @@ pub async fn request(req: HttpRequest, body: String) -> HttpResponse { if args.hidden && req.path().starts_with("/api/webui/") { return not_found(&headers); } - if headers.get("a6573cbe").is_none() && req.path().starts_with("/api") { + if headers.get("aoharu-asset-version").is_none() && req.path().starts_with("/api") { if args.hidden { return not_found(&headers); } else {