Skip to content

Commit fd7716c

Browse files
author
James Storey
committed
implement fix from PR gin-contrib#55
1 parent c6e7905 commit fd7716c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

timeout.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ func New(opts ...Option) gin.HandlerFunc {
8585
tw.FreeBuffer()
8686
bufPool.Put(buffer)
8787

88-
c.Writer = w
89-
t.response(c)
90-
c.Writer = tw
88+
cc := c.Copy()
89+
cc.Writer = w
90+
t.response(cc)
9191
}
9292
}
9393
}

0 commit comments

Comments
 (0)