Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: typo
Browse files Browse the repository at this point in the history
Duslia committed Aug 15, 2022

Unverified

No user is associated with the committer email.
1 parent 2cc9d0c commit 9ccaf1e
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -13,3 +13,7 @@ TestCompressFlateConcurrent = "TestCompressFlateConcurrent"
trUe = "trUe"
OPTIO = "OPTIO"
contant = "contant"
referer = "referer"
HeaderReferer = "HeaderReferer"
expectedReferer = "expectedReferer"
Referer = "Referer"
4 changes: 2 additions & 2 deletions pkg/protocol/http1/req/header_test.go
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ func TestRequestHeaderCookie(t *testing.T) {
h.SetCookie("привет", "мир")

if string(h.Cookie("foo")) != "bar" {
t.Fatalf("Unexpected cookie value %q. Exepcted %q", h.Cookie("foo"), "bar")
t.Fatalf("Unexpected cookie value %q. Expected %q", h.Cookie("foo"), "bar")
}
if string(h.Cookie("привет")) != "мир" {
t.Fatalf("Unexpected cookie value %q. Expected %q", h.Cookie("привет"), "мир")
@@ -226,7 +226,7 @@ func TestRequestHeaderCookie(t *testing.T) {
}

if !bytes.Equal(h1.Cookie("foo"), h.Cookie("foo")) {
t.Fatalf("Unexpected cookie value %q. Exepcted %q", h1.Cookie("foo"), h.Cookie("foo"))
t.Fatalf("Unexpected cookie value %q. Expected %q", h1.Cookie("foo"), h.Cookie("foo"))
}
h1.DelCookie("foo")
if len(h1.Cookie("foo")) > 0 {

0 comments on commit 9ccaf1e

Please sign in to comment.