diff --git a/CHANGELOG.md b/CHANGELOG.md index d3ce4be..cc97198 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security +## [1.2.3] - 2021-01-09 +### Fixed +- [2021-01-08] Better exception handling [@carbotaniuman]. + ## [1.2.3] - 2021-01-08 ### Fixed - [2021-01-08] Fix a bunch of stupid edge cases [@carbotaniuman]. diff --git a/src/main/kotlin/mdnet/base/Constants.kt b/src/main/kotlin/mdnet/base/Constants.kt index d5ca3a0..ceabebf 100644 --- a/src/main/kotlin/mdnet/base/Constants.kt +++ b/src/main/kotlin/mdnet/base/Constants.kt @@ -21,7 +21,7 @@ package mdnet.base import java.time.Duration object Constants { - const val CLIENT_BUILD = 19 + const val CLIENT_BUILD = 20 @JvmField val MAX_AGE_CACHE: Duration = Duration.ofDays(14) diff --git a/src/main/kotlin/mdnet/base/server/ImageServer.kt b/src/main/kotlin/mdnet/base/server/ImageServer.kt index d3b5782..b56637a 100644 --- a/src/main/kotlin/mdnet/base/server/ImageServer.kt +++ b/src/main/kotlin/mdnet/base/server/ImageServer.kt @@ -59,7 +59,6 @@ import org.apache.http.impl.client.HttpClients import org.http4k.client.Apache4Client import org.http4k.core.* import org.http4k.filter.CachingFilters -import org.http4k.filter.ServerFilters import org.http4k.lens.LensFailure import org.http4k.lens.Path import org.http4k.routing.bind @@ -374,7 +373,6 @@ fun getServer(cache: DiskLruCache, database: Database, remoteSettings: RemoteSet .then(timeRequest()) .then(setHandled(isHandled)) .then(catchAllHideDetails()) - .then(ServerFilters.CatchLensFailure) .then( routes( "/data/{chapterHash}/{fileName}" bind Method.GET to imageServer.handler(dataSaver = false),