From cc80cb2643d75fd4c65ef8adc485e53036af9b5f Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sat, 13 Mar 2021 16:51:00 -0300 Subject: [PATCH] implement #90 --- .../kotlin/com/github/creeper123123321/viaaas/web/ViaWebApp.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/com/github/creeper123123321/viaaas/web/ViaWebApp.kt b/src/main/kotlin/com/github/creeper123123321/viaaas/web/ViaWebApp.kt index 8d13a96..7f27b86 100644 --- a/src/main/kotlin/com/github/creeper123123321/viaaas/web/ViaWebApp.kt +++ b/src/main/kotlin/com/github/creeper123123321/viaaas/web/ViaWebApp.kt @@ -31,6 +31,9 @@ class ViaWebApp { } install(XForwardedHeaderSupport) install(ForwardedHeaderSupport) + // i think we aren't vulnerable to breach, dynamic things are websockets + // https://ktor.io/docs/compression.html#security + install(Compression) routing { webSocket("/ws") {