diff --git a/fixtures/with_hsts/Staticfile b/fixtures/with_hsts/Staticfile index 356b92764..6bbb4e34c 100644 --- a/fixtures/with_hsts/Staticfile +++ b/fixtures/with_hsts/Staticfile @@ -1 +1,3 @@ http_strict_transport_security: true +http_strict_transport_security_include_subdomains: true +http_strict_transport_security_preload: true diff --git a/src/staticfile/integration/deploy_app_with_hsts_test.go b/src/staticfile/integration/deploy_app_with_hsts_test.go index cb92fbf98..c0ac7d7ce 100644 --- a/src/staticfile/integration/deploy_app_with_hsts_test.go +++ b/src/staticfile/integration/deploy_app_with_hsts_test.go @@ -27,6 +27,6 @@ var _ = Describe("deploy an app using hsts", func() { _, headers, err := app.Get("/", map[string]string{}) Expect(err).To(BeNil()) - Expect(headers).To(HaveKey("Strict-Transport-Security")) + Expect(headers).To(HaveKeyWithValue("Strict-Transport-Security", []string{"max-age=31536000; includeSubDomains; preload"})) }) })