aboutsummaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2024-02-21 06:51:28 +0200
committerGravatar GitHub <noreply@github.com> 2024-02-21 05:51:28 +0100
commit190204cf1a4f9999e2739d3825967df445d82d7c (patch)
treed1acd3796778b24edfd2677e52ed69a1ca3eae5c /server_test.go
parentRemove unnecessary build tag go1.21 (#1721) (diff)
downloadfasthttp-190204cf1a4f9999e2739d3825967df445d82d7c.tar.gz
fasthttp-190204cf1a4f9999e2739d3825967df445d82d7c.tar.bz2
fasthttp-190204cf1a4f9999e2739d3825967df445d82d7c.zip
Upgrade golangci-lint to v1.56.2; fix gocritic issues (#1722)
Diffstat (limited to 'server_test.go')
-rw-r--r--server_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server_test.go b/server_test.go
index 58454db..2153c89 100644
--- a/server_test.go
+++ b/server_test.go
@@ -2012,7 +2012,7 @@ func TestCompressHandler(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}
ce := resp.Header.ContentEncoding()
- if string(ce) != "" {
+ if len(ce) != 0 {
t.Fatalf("unexpected Content-Encoding: %q. Expecting %q", ce, "")
}
body := resp.Body()
@@ -2110,11 +2110,11 @@ func TestCompressHandlerVary(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}
ce := resp.Header.ContentEncoding()
- if string(ce) != "" {
+ if len(ce) != 0 {
t.Fatalf("unexpected Content-Encoding: %q. Expecting %q", ce, "")
}
vary := resp.Header.Peek("Vary")
- if string(vary) != "" {
+ if len(vary) != 0 {
t.Fatalf("unexpected Vary: %q. Expecting %q", vary, "")
}
body := resp.Body()