diff --git a/src/main/kotlin/dev/andante/audience/resource/ResourcePackHandler.kt b/src/main/kotlin/dev/andante/audience/resource/ResourcePackHandler.kt index 6a07aa2..ede42d4 100644 --- a/src/main/kotlin/dev/andante/audience/resource/ResourcePackHandler.kt +++ b/src/main/kotlin/dev/andante/audience/resource/ResourcePackHandler.kt @@ -18,6 +18,11 @@ object ResourcePackHandler : HttpInjector() { val response = ctx.httpBuffer() val path = request.requestURI.removePrefix("/") + + if (path.isEmpty()) { + return response + } + if (!path.matches(SHA1_REGEX)) { return response }