summaryrefslogtreecommitdiff
path: root/service/http/service.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-08-26 22:26:09 +0300
committerValery Piashchynski <[email protected]>2020-08-26 22:26:09 +0300
commit7a09aaf3d4d137e6bd956bc995abc392717752d2 (patch)
tree23223b820281bbcf6f3094ac87ae4c79818b3d40 /service/http/service.go
parent484be3d190f5bb224ac50e2703179b2699bac0ec (diff)
parente706748e751a462d81a30de09bebf5ab27e696c2 (diff)
Merge remote-tracking branch 'remotes/origin/master' into pci_dss_upgrade
# Conflicts: # service/http/service.go
Diffstat (limited to 'service/http/service.go')
-rw-r--r--service/http/service.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/http/service.go b/service/http/service.go
index a3b07691..25a10064 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -266,7 +266,7 @@ func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
if s.https != nil && r.TLS != nil {
- w.Header().Add("Strict-Transport-Security", "max-age=63072000; includeSubDomains")
+ w.Header().Add("Strict-Transport-Security", "max-age=31536000; includeSubDomains; preload")
}
r = attributes.Init(r)