修复双重写入

This commit is contained in:
user123456
2025-06-18 21:29:56 +08:00
parent c22bd0637a
commit 44c6e4cd7b

View File

@@ -386,7 +386,7 @@ func (r *ResponseRecorder) WriteHeader(code int) {
func (r *ResponseRecorder) Write(data []byte) (int, error) {
r.body = append(r.body, data...)
r.written = true
return r.ResponseWriter.Write(data)
return len(data), nil
}
func proxyDockerAuthOriginal(c *gin.Context) {