1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Add support for HTTP Strict Transport Security header

This commit is contained in:
Frédéric Guillot 2018-02-03 15:54:02 -08:00
parent 9c42997209
commit 61bc012a62
4 changed files with 33 additions and 3 deletions

View file

@ -45,7 +45,7 @@ func (h *Handler) Use(f ControllerFunc) http.Handler {
ctx := NewContext(r, h.store, h.router, h.translator)
request := NewRequest(r)
response := NewResponse(w, r, h.template)
response := NewResponse(h.cfg, w, r, h.template)
language := ctx.UserLanguage()
if language != "" {