Skip to content

Commit

Permalink
fix stackoverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Nov 21, 2023
1 parent 33e30f3 commit eeda3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (i *rwInterceptor) Header() http.Header {
}

func (i *rwInterceptor) ReadFrom(r io.Reader) (n int64, err error) {
return io.Copy(i, r)
return io.Copy(struct{ io.Writer }{i}, r)
}

func (i *rwInterceptor) Flush() {
Expand Down

0 comments on commit eeda3b7

Please sign in to comment.