Slight typo.

This commit is contained in:
Amos Ng 2020-06-12 01:35:12 +08:00
parent da47b86d97
commit a1130d204c
No known key found for this signature in database
GPG key ID: 89086414F634D123

View file

@ -186,7 +186,6 @@ fun getServer(cache: DiskLruCache, serverSettings: ServerSettings, clientSetting
editor.abort() editor.abort()
} }
} }
mdResponse.close()
respondWithImage(tee, contentLength, contentType, lastModified) respondWithImage(tee, contentLength, contentType, lastModified)
} else { } else {
editor?.abort() editor?.abort()
@ -194,9 +193,9 @@ fun getServer(cache: DiskLruCache, serverSettings: ServerSettings, clientSetting
if (LOGGER.isTraceEnabled) { if (LOGGER.isTraceEnabled) {
LOGGER.trace("Request for $sanitizedUri is being served") LOGGER.trace("Request for $sanitizedUri is being served")
} }
mdResponse.close()
respondWithImage(mdResponse.body.stream, contentLength, contentType, lastModified) respondWithImage(mdResponse.body.stream, contentLength, contentType, lastModified)
} }
mdResponse.close()
} }
} }
} }