mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-23 06:39:13 -04:00
incorporate requested changes
Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
1 parent
f9807f9f3a
commit
97ee9b36a5
1 file changed
+1
-5
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user