feat: flush response writer after copying body
This commit is contained in:
@@ -57,4 +57,5 @@ func IOCopyBytesGracefully(c *gin.Context, src *http.Response, data []byte) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logger.LogError(c, fmt.Sprintf("failed to copy response body: %s", err.Error()))
|
logger.LogError(c, fmt.Sprintf("failed to copy response body: %s", err.Error()))
|
||||||
}
|
}
|
||||||
|
c.Writer.Flush()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user