diff options
author | Oleksandr Redko <Oleksandr_Redko@epam.com> | 2023-08-30 14:24:39 +0300 |
---|---|---|
committer | Kirill Danshin <kirill@danshin.pro> | 2023-08-30 14:13:13 +0200 |
commit | 4ec5c5a7745dfa8c81347eac43411a2dc62ea4f7 (patch) | |
tree | a2c4486945550e83818265678902f82178a020ae /server_test.go | |
parent | Enable gocritic linter; fix lint issues (#1612) (diff) | |
download | fasthttp-4ec5c5a7745dfa8c81347eac43411a2dc62ea4f7.tar.gz fasthttp-4ec5c5a7745dfa8c81347eac43411a2dc62ea4f7.tar.bz2 fasthttp-4ec5c5a7745dfa8c81347eac43411a2dc62ea4f7.zip |
docs: fix typos in comments and tests
Diffstat (limited to 'server_test.go')
-rw-r--r-- | server_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server_test.go b/server_test.go index 67ca8a6..ad188db 100644 --- a/server_test.go +++ b/server_test.go @@ -1830,7 +1830,7 @@ func TestServerExpect100Continue(t *testing.T) { } ct := ctx.Request.Header.ContentType() if string(ct) != "a/b" { - t.Errorf("unexpectected content-type: %q. Expecting %q", ct, "a/b") + t.Errorf("unexpected content-type: %q. Expecting %q", ct, "a/b") } if string(ctx.PostBody()) != "12345" { t.Errorf("unexpected body: %q. Expecting %q", ctx.PostBody(), "12345") @@ -1870,7 +1870,7 @@ func TestServerContinueHandler(t *testing.T) { ct := headers.ContentType() if string(ct) != "a/b" { - t.Errorf("unexpectected content-type: %q. Expecting %q", ct, "a/b") + t.Errorf("unexpected content-type: %q. Expecting %q", ct, "a/b") } // Pass on any request that isn't the accepted content length @@ -1888,7 +1888,7 @@ func TestServerContinueHandler(t *testing.T) { } ct := ctx.Request.Header.ContentType() if string(ct) != "a/b" { - t.Errorf("unexpectected content-type: %q. Expecting %q", ct, "a/b") + t.Errorf("unexpected content-type: %q. Expecting %q", ct, "a/b") } if string(ctx.PostBody()) != "12345" { t.Errorf("unexpected body: %q. Expecting %q", ctx.PostBody(), "12345") |