feat: flush response writer after copying body

This commit is contained in:
feitianbubu
2025-12-30 17:49:48 +08:00
parent 48d358faec
commit d474ed4778

View File

@@ -57,4 +57,5 @@ func IOCopyBytesGracefully(c *gin.Context, src *http.Response, data []byte) {
if err != nil {
logger.LogError(c, fmt.Sprintf("failed to copy response body: %s", err.Error()))
}
c.Writer.Flush()
}