diff --git a/src/main/kotlin/mdnet/base/Application.kt b/src/main/kotlin/mdnet/base/Application.kt index 4c7e8c9..9afd854 100644 --- a/src/main/kotlin/mdnet/base/Application.kt +++ b/src/main/kotlin/mdnet/base/Application.kt @@ -144,6 +144,7 @@ fun getServer(cache: DiskLruCache, serverSettings: ServerSettings, clientSetting if (LOGGER.isTraceEnabled) { LOGGER.trace("Upstream query for $sanitizedUri errored with status {}", mdResponse.status) } + mdResponse.close() Response(mdResponse.status) } else { if (LOGGER.isTraceEnabled) {