Skip to content

Commit

Permalink
fix: proper bytes slice write
Browse files Browse the repository at this point in the history
  • Loading branch information
tomMoulard committed Nov 14, 2022
1 parent b672064 commit 6fd41fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/middlewares/compress/brotli/brotli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ func Test_FlushAfterWrite(t *testing.T) {
require.NoError(t, err)

rw.(http.Flusher).Flush()
for i := range bigTestBody[1:] {
_, err := rw.Write(bigTestBody[i : i+1])
for _, b := range bigTestBody[1:] {
_, err := rw.Write([]byte{b})
require.NoError(t, err)
}
})))
Expand Down

0 comments on commit 6fd41fe

Please sign in to comment.