fix: 修复语法问题

This commit is contained in:
tbphp
2025-06-09 22:27:30 +08:00
parent 9562f0f6dd
commit 6b33f7054d
11 changed files with 124 additions and 39 deletions

View File

@@ -369,8 +369,8 @@ func (ps *ProxyServer) handleStreamingResponse(c *gin.Context, resp *http.Respon
return
}
// Copy streaming data
buffer := make([]byte, 4096)
// Copy streaming data with optimized buffer size
buffer := make([]byte, 32*1024) // 32KB buffer for better performance
for {
n, err := resp.Body.Read(buffer)
if n > 0 {