|
@@ -51,7 +51,7 @@ func (ept *ProxyEndpoint) SplitInboundOutboundHeaders() ([][]string, [][]string)
|
|
|
|
|
|
//Check if the endpoint require HSTS headers
|
|
|
if ept.HSTSMaxAge > 0 {
|
|
|
- if ept.ContainsWildcardName(false) {
|
|
|
+ if ept.ContainsWildcardName(true) {
|
|
|
//Endpoint listening domain includes wildcards.
|
|
|
downstreamHeaders[downstreamHeaderCounter] = []string{"Strict-Transport-Security", "max-age=" + strconv.Itoa(int(ept.HSTSMaxAge)) + "; includeSubdomains"}
|
|
|
} else {
|