Skip to content

Commit

Permalink
update casing (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomcej authored and unrolled committed Sep 17, 2019
1 parent 7cf559e commit 232c938
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion secure.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type secureCtxKey string

const (
stsHeader = "Strict-Transport-Security"
stsSubdomainString = "; includeSubdomains"
stsSubdomainString = "; includeSubDomains"
stsPreloadString = "; preload"
frameOptionsHeader = "X-Frame-Options"
frameOptionsValue = "DENY"
Expand Down
4 changes: 2 additions & 2 deletions secure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 232c938

Please sign in to comment.