9f2f978660
As per suggested in #1104 , I added a middleware that adds the http header.
7 lignes
137 o
Go
7 lignes
137 o
Go
package middlewares
|
|
|
|
import "github.com/NyaaPantsu/nyaa/controllers/router"
|
|
|
|
func init() {
|
|
router.Get().Use(CSP(), ErrorMiddleware())
|
|
}
|