mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-23 05:57:19 +02:00
Fix StripPomeriumCookie
This commit is contained in:
parent
2d2f314a7b
commit
7723b8db6c
2 changed files with 8 additions and 3 deletions
|
@ -84,6 +84,11 @@ func TestStripPomeriumCookie(t *testing.T) {
|
|||
Name: tt.pomeriumCookie,
|
||||
Value: "pomerium cookie!",
|
||||
})
|
||||
|
||||
http.SetCookie(rr, &http.Cookie{
|
||||
Name: tt.pomeriumCookie + "_csrf",
|
||||
Value: "pomerium csrf cookie!",
|
||||
})
|
||||
req := &http.Request{Header: http.Header{"Cookie": rr.Header()["Set-Cookie"]}}
|
||||
|
||||
handler := StripPomeriumCookie(tt.pomeriumCookie)(testHandler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue