You've already forked nyx
mirror of
https://github.com/rls-moe/nyx
synced 2025-12-13 09:30:41 +00:00
MVP, no mod tools or anything but it works
This commit is contained in:
12
vendor/github.com/justinas/nosurf/handler_go17.go
generated
vendored
Normal file
12
vendor/github.com/justinas/nosurf/handler_go17.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
// +build go1.7
|
||||
|
||||
package nosurf
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func addNosurfContext(r *http.Request) *http.Request {
|
||||
return r.WithContext(context.WithValue(r.Context(), nosurfKey, &csrfContext{}))
|
||||
}
|
||||
Reference in New Issue
Block a user