Skip to content

Commit 44c6e4c

Browse files
author
user123456
committed
修复双重写入
1 parent c22bd06 commit 44c6e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func (r *ResponseRecorder) WriteHeader(code int) {
386386
func (r *ResponseRecorder) Write(data []byte) (int, error) {
387387
r.body = append(r.body, data...)
388388
r.written = true
389-
return r.ResponseWriter.Write(data)
389+
return len(data), nil
390390
}
391391

392392
func proxyDockerAuthOriginal(c *gin.Context) {

0 commit comments

Comments
 (0)