Skip to content

Commit

Permalink
fix: typo (cloudwego#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duslia authored and FGYFFFF committed Aug 24, 2022
1 parent 7bd8474 commit 7e3b51c
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Up @@ -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("привет"), "мир")
Expand All @@ -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 {
Expand Down

0 comments on commit 7e3b51c

Please sign in to comment.