(t *testing.T)
| 261 | } |
| 262 | |
| 263 | func Test_HSTSPreloadIncludesSubdomains(t *testing.T) { |
| 264 | t.Parallel() |
| 265 | |
| 266 | require.Equal(t, "max-age=31536000; includeSubDomains; preload", hstsHeaderForRequest(t, &Config{ |
| 267 | HSTSMaxAge: 31536000, |
| 268 | HSTSPreloadEnabled: true, |
| 269 | }, "https")) |
| 270 | } |
| 271 | |
| 272 | func hstsHeaderForRequest(t *testing.T, config *Config, scheme string) string { |
| 273 | t.Helper() |
nothing calls this directly
no test coverage detected