incorporate requested changes

Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
Christian Richter
2025-11-18 16:41:27 +01:00
parent f9807f9f3a
commit 97ee9b36a5

View File

@@ -19,11 +19,7 @@ func LoadCSPConfig(proxyCfg *config.Config) (*config.CSP, error) {
if err != nil {
return nil, err
}
if proxyCfg.CSPConfigFileOverrideLocation == "" {
return loadCSPConfig(yamlContent, customYamlContent)
} else {
return loadCSPConfig(yamlContent, []byte{})
}
return loadCSPConfig(yamlContent, customYamlContent)
}
// LoadCSPConfig loads CSP header configuration from a yaml file.