Skip to main content

validate_hsts_patch

Function validate_hsts_patch 

Source
pub fn validate_hsts_patch(hsts: &HstsConfig) -> Result<(), StateError>
Expand description

Validate the hsts block of an UpdateHttpsListenerConfig patch: it replaces the listener default whole, and enabled is what tells “disable” from “enable”, so a block without it is refused — on the main process here, on the worker with ListenerError::HstsEnabledRequired.