run go fmt ./...
This commit is contained in:
parent
a5218b38a6
commit
da2f04480c
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ func SetHeaders(c *web.C, h http.Handler) http.Handler {
|
||||||
w.Header().Add("Cache-Control", "value")
|
w.Header().Add("Cache-Control", "value")
|
||||||
w.Header().Set("Last-Modified", time.Now().UTC().Format(http.TimeFormat))
|
w.Header().Set("Last-Modified", time.Now().UTC().Format(http.TimeFormat))
|
||||||
w.Header().Set("Expires", "Thu, 01 Jan 1970 00:00:00 GMT")
|
w.Header().Set("Expires", "Thu, 01 Jan 1970 00:00:00 GMT")
|
||||||
if (r.TLS != nil) {
|
if r.TLS != nil {
|
||||||
w.Header().Add("Strict-Transport-Security", "max-age=31536000")
|
w.Header().Add("Strict-Transport-Security", "max-age=31536000")
|
||||||
}
|
}
|
||||||
h.ServeHTTP(w, r)
|
h.ServeHTTP(w, r)
|
||||||
|
|
Loading…
Reference in a new issue