From 10aa0f5e0f70d4158ae8c668496f433b9ba24d43 Mon Sep 17 00:00:00 2001 From: f43nd1r Date: Sun, 8 Oct 2023 13:19:59 +0200 Subject: [PATCH] re-enable request decompression after ziplet update. Closes #458 --- .../kotlin/com/faendir/acra/rest/RestConfiguration.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/acrarium/src/main/kotlin/com/faendir/acra/rest/RestConfiguration.kt b/acrarium/src/main/kotlin/com/faendir/acra/rest/RestConfiguration.kt index 30be4d6a..89e6efae 100644 --- a/acrarium/src/main/kotlin/com/faendir/acra/rest/RestConfiguration.kt +++ b/acrarium/src/main/kotlin/com/faendir/acra/rest/RestConfiguration.kt @@ -1,5 +1,5 @@ /* - * (C) Copyright 2020-2022 Lukas Morawietz (https://github.com/F43nd1r) + * (C) Copyright 2020-2023 Lukas Morawietz (https://github.com/F43nd1r) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,16 @@ */ package com.faendir.acra.rest +import com.github.ziplet.filter.compression.CompressingFilter +import jakarta.servlet.Filter +import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration +import org.springframework.core.Ordered +import org.springframework.core.annotation.Order @Configuration -class RestConfiguration {/* +class RestConfiguration { @Bean @Order(Ordered.HIGHEST_PRECEDENCE) - fun gzipFilter(): Filter = CompressingFilter() // TODO migrate to jakarta*/ + fun gzipFilter(): Filter = CompressingFilter() } \ No newline at end of file