Selaa lähdekoodia

feat: flush response writer after copying body

feitianbubu 2 kuukautta sitten
vanhempi
commit
d474ed4778
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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()
 }