Skip to content

Commit

Permalink
Add pack size to pack response
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Oct 17, 2024
1 parent 275fb98 commit ef3e06c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef3e06c

Please sign in to comment.