Httprouter compatibility?
chespinoza opened this issue · 2 comments
chespinoza commented
Are there plans to have https://github.com/julienschmidt/httprouter compatibility?
Thanks in advance.
justinas commented
nosurf wraps any http.Handler
. Unless there's some specific issue I don't know, it should work perfectly fine with HttpRouter.
Building upon the example from its README:
log.Fatal(http.ListenAndServe(":8080", nosurf.New(router)))
chespinoza commented
Yeah, confirmed that nosurf works with httprouter.