Permalink
Browse files

Add Date to whitelisted response headers.

  • Loading branch information...
aaron42net committed May 22, 2017
1 parent 689c4b6 commit 98afa55e99c55657287e78e22b13bdb2832a365a
Showing with 2 additions and 2 deletions.
  1. +1 −1 cmd/fotomat/version.go
  2. +1 −1 thumbnail/proxy.go
View
@@ -8,7 +8,7 @@ import (
const (
// FotomatVersion is updated by git-hooks/pre-commit
FotomatVersion = "2.6.211"
FotomatVersion = "2.6.212"
)
var (
View
@@ -97,7 +97,7 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, or *http.Request) {
return
}
copyHeaders(header, w.Header(), []string{"Age", "Cache-Control", "Etag", "Expires", "Last-Modified"})
copyHeaders(header, w.Header(), []string{"Age", "Cache-Control", "Date", "Etag", "Expires", "Last-Modified"})
w.Header().Set("X-Content-Type-Options", "nosniff")
w.Header().Set("X-XSS-Protection", "1; mode=block")

0 comments on commit 98afa55

Please sign in to comment.