Fix check for HSTS when service is disabled.

This commit is contained in:
Ascrod 2019-01-17 18:18:49 -05:00 committed by Roy Tam
commit b85fb498d9

View file

@ -998,7 +998,7 @@ nsSiteSecurityService::IsSecureHost(uint32_t aType, const char* aHost,
}
// Exit early if checking HSTS and STS not enabled
if (!mUseStsService && aType != nsISiteSecurityService::HEADER_HSTS) {
if (!mUseStsService && aType == nsISiteSecurityService::HEADER_HSTS) {
return NS_OK;
}