do not close writer prematurely
This commit is contained in:
1
main.go
1
main.go
@@ -1100,7 +1100,6 @@ func getSiteMap(c *gin.Context) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warningf("error writing to pipe: %v", err)
|
log.Warningf("error writing to pipe: %v", err)
|
||||||
}
|
}
|
||||||
_ = tWriter.Close()
|
|
||||||
}()
|
}()
|
||||||
c.DataFromReader(http.StatusOK, -1, "application/xml", tReader, nil)
|
c.DataFromReader(http.StatusOK, -1, "application/xml", tReader, nil)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user