diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2023-02-15 12:54:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 11:54:23 +0100 |
commit | b79a03aaf94639119b26b5c6fef101b812c67d29 (patch) | |
tree | fc947aa7b9cdd5203b2f647337dc099b7c701650 /header_test.go | |
parent | docs: Deprecate ErrAlreadyServing as never returning (#1491) (diff) | |
download | fasthttp-b79a03aaf94639119b26b5c6fef101b812c67d29.tar.gz fasthttp-b79a03aaf94639119b26b5c6fef101b812c67d29.tar.bz2 fasthttp-b79a03aaf94639119b26b5c6fef101b812c67d29.zip |
test: close response body (#1496)
Diffstat (limited to 'header_test.go')
-rw-r--r-- | header_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/header_test.go b/header_test.go index 0129f3f..b23defa 100644 --- a/header_test.go +++ b/header_test.go @@ -71,6 +71,7 @@ func TestResponseHeaderMultiLineValue(t *testing.T) { if err != nil { t.Fatalf("parse response using net/http failed, %v", err) } + defer func() { _ = response.Body.Close() }() if !bytes.Equal(header.StatusMessage(), []byte("SuperOK")) { t.Errorf("parse status line with non-default value failed, got: '%q' want: 'SuperOK'", header.StatusMessage()) |