Explorar o código

Merge pull request #2551 from feitianbubu/pr/829cb06b5d689ecbcc05bb3ef49dbf1aec427c35

feat: flush response writer after copying body
Calcium-Ion hai 2 meses
pai
achega
11922ef651
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      service/http.go

+ 1 - 0
service/http.go

@@ -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()
 }