Hotfix: API Download is decompressed

This commit is contained in:
2025-01-26 00:22:50 +01:00
parent d5fb48ff3f
commit 71362bc079
2 changed files with 10 additions and 2 deletions
@@ -95,7 +95,7 @@ fun Route.configureSchematic() {
}
call.response.header("Content-Disposition", "attachment; filename=\"${node.name}${data.nodeFormat.fileEnding}\"")
call.respondBytes(data.schemData().readAllBytes(), contentType = ContentType.Application.OctetStream, status = HttpStatusCode.OK)
call.respondBytes(data.schemData(false).readAllBytes(), contentType = ContentType.Application.OctetStream, status = HttpStatusCode.OK)
}
get("/info") {
val node = call.receiveSchematic() ?: return@get