From 232c938a6a69cfd83e26e2bfe100a20486d3a9a0 Mon Sep 17 00:00:00 2001 From: Daniel Tomcej Date: Tue, 17 Sep 2019 10:15:32 -0500 Subject: [PATCH] update casing (#59) --- secure.go | 2 +- secure_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/secure.go b/secure.go index f9ec243..92347bf 100644 --- a/secure.go +++ b/secure.go @@ -12,7 +12,7 @@ type secureCtxKey string const ( stsHeader = "Strict-Transport-Security" - stsSubdomainString = "; includeSubdomains" + stsSubdomainString = "; includeSubDomains" stsPreloadString = "; preload" frameOptionsHeader = "X-Frame-Options" frameOptionsValue = "DENY" diff --git a/secure_test.go b/secure_test.go index 6271c3f..d159b5a 100644 --- a/secure_test.go +++ b/secure_test.go @@ -600,7 +600,7 @@ func TestStsHeaderWithSubdomains(t *testing.T) { s.Handler(myHandler).ServeHTTP(res, req) expect(t, res.Code, http.StatusOK) - expect(t, res.Header().Get("Strict-Transport-Security"), "max-age=315360000; includeSubdomains") + expect(t, res.Header().Get("Strict-Transport-Security"), "max-age=315360000; includeSubDomains") } func TestStsHeaderWithSubdomainsForRequestOnly(t *testing.T) { @@ -665,7 +665,7 @@ func TestStsHeaderWithSubdomainsWithPreload(t *testing.T) { s.Handler(myHandler).ServeHTTP(res, req) expect(t, res.Code, http.StatusOK) - expect(t, res.Header().Get("Strict-Transport-Security"), "max-age=315360000; includeSubdomains; preload") + expect(t, res.Header().Get("Strict-Transport-Security"), "max-age=315360000; includeSubDomains; preload") } func TestStsHeaderWithSubdomainsWithPreloadForRequestOnly(t *testing.T) {