diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-18 14:00:24 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-18 14:00:24 +0200 |
commit | 86fe38c7a2ab206bcc7b4ec5b5a6702b80a8cdba (patch) | |
tree | db5dad799f8214a9619061a94c567387b65eb213 /server_timing_test.go | |
parent | Added Response.SetStatusCode (diff) | |
download | fasthttp-86fe38c7a2ab206bcc7b4ec5b5a6702b80a8cdba.tar.gz fasthttp-86fe38c7a2ab206bcc7b4ec5b5a6702b80a8cdba.tar.bz2 fasthttp-86fe38c7a2ab206bcc7b4ec5b5a6702b80a8cdba.zip |
Hide Respone and Request body behind Body accessors
Diffstat (limited to 'server_timing_test.go')
-rw-r--r-- | server_timing_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server_timing_test.go b/server_timing_test.go index 58ae4b0..8783ce5 100644 --- a/server_timing_test.go +++ b/server_timing_test.go @@ -322,7 +322,7 @@ func benchmarkServerPost(b *testing.B, clientsCount, requestsPerConn int) { if !ctx.IsPost() { b.Fatalf("Unexpected request method: %s", ctx.Method()) } - body := ctx.Request.Body + body := ctx.Request.Body() if !bytes.Equal(body, fakeResponse) { b.Fatalf("Unexpected body %q. Expected %q", body, fakeResponse) } |