From ef3e06c795d99a27195e6d6e99198c0d83d02139 Mon Sep 17 00:00:00 2001 From: Daniel Orr Date: Thu, 17 Oct 2024 23:30:30 +0100 Subject: [PATCH] Add pack size to pack response --- gradle.properties | 2 +- .../kotlin/dev/andante/audience/resource/ResourcePackHandler.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 8d5cdbe..268993a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,5 +13,5 @@ kache_version=1.0.5 inject_version=1.2.2 # Mod Properties -mod_version=2.12.1 +mod_version=2.12.2 maven_group=dev.andante diff --git a/src/main/kotlin/dev/andante/audience/resource/ResourcePackHandler.kt b/src/main/kotlin/dev/andante/audience/resource/ResourcePackHandler.kt index 30417f9..f193b4c 100644 --- a/src/main/kotlin/dev/andante/audience/resource/ResourcePackHandler.kt +++ b/src/main/kotlin/dev/andante/audience/resource/ResourcePackHandler.kt @@ -17,6 +17,7 @@ object ResourcePackHandler : HttpInjector() { response.writeStatusLine("1.1", 200, "OK") response.writeHeader("Content-Type", "application/zip") + response.writeHeader("Content-Length", pack.size.toString()) response.writeBytes(pack) return response