Pull request 1985: 2998-hsts

Updates #2998.
Updates #4941.

Squashed commit of the following:

commit ef6ed6acb89b10c4bf1b0c7ba34002f9d7f2e68c
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Wed Aug 30 18:43:25 2023 +0300

    all: imp chlog

commit 0957a85d53edcd5eba591e42301191db42a258ad
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Wed Aug 30 18:31:46 2023 +0300

    home: add hsts when force_https is true
This commit is contained in:
Ainar Garipov
2023-08-30 18:57:36 +03:00
parent a2ca8b5b4a
commit 18d15be4e8
3 changed files with 45 additions and 24 deletions

View File

@@ -4,6 +4,7 @@ package aghhttp
// HTTP header value constants.
const (
HdrValApplicationJSON = "application/json"
HdrValTextPlain = "text/plain"
HdrValApplicationJSON = "application/json"
HdrValStrictTransportSecurity = "max-age=31536000; includeSubDomains"
HdrValTextPlain = "text/plain"
)