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 /header_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 'header_test.go')
-rw-r--r-- | header_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/header_test.go b/header_test.go index 67ea9fa..2893751 100644 --- a/header_test.go +++ b/header_test.go @@ -1227,7 +1227,7 @@ func TestRequestHeaderProxyWithCookie(t *testing.T) { t.Fatalf("unexpected Foo: %q. Expecting %q", h1.Peek("Foo"), "bar") } if string(h1.Cookie("foo")) != "bar" { - t.Fatalf("unexpected coookie foo=%q. Expecting %q", h1.Cookie("foo"), "bar") + t.Fatalf("unexpected cookie foo=%q. Expecting %q", h1.Cookie("foo"), "bar") } if string(h1.Cookie("bazzz")) != "aaaaaaa" { t.Fatalf("unexpected cookie bazzz=%q. Expecting %q", h1.Cookie("bazzz"), "aaaaaaa") @@ -2356,14 +2356,14 @@ func TestResponseHeaderReadSuccess(t *testing.T) { t.Fatalf("expecting connection: close") } - // tranfer-encoding: chunked + // transfer-encoding: chunked testResponseHeaderReadSuccess(t, h, "HTTP/1.1 505 Internal error\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\n\r\n", 505, -1, "text/html") if h.ConnectionClose() { t.Fatalf("unexpected connection: close") } - // reverse order of content-type and tranfer-encoding + // reverse order of content-type and transfer-encoding testResponseHeaderReadSuccess(t, h, "HTTP/1.1 343 foobar\r\nTransfer-Encoding: chunked\r\nContent-Type: text/json\r\n\r\n", 343, -1, "text/json") |