Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions csrf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,6 @@ func TestNoCookie(t *testing.T) {
s := http.NewServeMux()
p := Protect(testKey)(s)

var token string
s.Handle("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
token = Token(r)
}))

// POST the token back in the header.
r, err := http.NewRequest("POST", "http://www.gorillatoolkit.org/", nil)
if err != nil {
Expand Down