do not close writer prematurely

This commit is contained in:
2022-12-07 15:31:12 +01:00
parent b6407514da
commit ba1a1cf31f

View File

@@ -1100,7 +1100,6 @@ func getSiteMap(c *gin.Context) {
if err != nil {
log.Warningf("error writing to pipe: %v", err)
}
_ = tWriter.Close()
}()
c.DataFromReader(http.StatusOK, -1, "application/xml", tReader, nil)
}