fixed CSP issue

This commit is contained in:
ston1th 2019-09-09 12:17:09 +02:00
commit 621cc2a83e
7 changed files with 11 additions and 6 deletions

View file

@ -170,6 +170,7 @@ func rawHandler(ctx *Context) {
}
return
}
ctx.Response.Header().Del("Content-Security-Policy")
http.ServeContent(ctx.Response, ctx.Request, fi.Name(), fi.ModTime(), f)
}