Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
wzekin committed Jan 4, 2023
1 parent 39e6456 commit 699527f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/protocol/http1/resp/response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,8 @@ func testSetResponseBodyStreamChunked(t *testing.T, body string, trailer map[str
func TestResponseStream(t *testing.T) {
var pool bytebufferpool.Pool
var resp protocol.Response
var bodybuf = pool.Get()
var body = mock.NewZeroCopyReader("5\r\n56789\r\n0\r\nfoo: bar\r\n\r\n")
bodybuf := pool.Get()
body := mock.NewZeroCopyReader("5\r\n56789\r\n0\r\nfoo: bar\r\n\r\n")
stream := AcquireResponseStream(bodybuf, body, -1, &resp.Header)
byteSlice := make([]byte, 4096)
_, err := stream.Read(byteSlice)
Expand Down

0 comments on commit 699527f

Please sign in to comment.