close request bodies

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-11-05 13:06:05 +01:00
parent fbe3470ef3
commit 76c63ef696
3 changed files with 10 additions and 0 deletions
+3
View File
@@ -196,6 +196,9 @@ func (k Konnectd) Index() http.HandlerFunc {
if err != nil {
k.logger.Fatal().Err(err).Msg("Could not read index template")
}
if err = f.Close(); err != nil {
k.logger.Fatal().Err(err).Msg("Could not close body")
}
// TODO add environment variable to make the path prefix configurable
pp := "/signin/v1"