Skip to content
Snippets Groups Projects
Commit c48d52cd authored by Rohith's avatar Rohith
Browse files

- updating the config

parent b86c8df8
Branches
Tags
No related merge requests found
...@@ -219,7 +219,7 @@ func readOptions(cx *cli.Context, config *Config) (err error) { ...@@ -219,7 +219,7 @@ func readOptions(cx *cli.Context, config *Config) (err error) {
config.CORS.MaxAge = cx.Duration("cors-max-age") config.CORS.MaxAge = cx.Duration("cors-max-age")
} }
if cx.IsSet("cors-credentials") { if cx.IsSet("cors-credentials") {
config.CORS.MaxAge = cx.BoolT("cors-credentials") config.CORS.Credentials = cx.BoolT("cors-credentials")
} }
if cx.IsSet("tag") { if cx.IsSet("tag") {
config.TagData, err = decodeKeyPairs(cx.StringSlice("tag")) config.TagData, err = decodeKeyPairs(cx.StringSlice("tag"))
......
...@@ -94,7 +94,7 @@ func newFakeKeycloakProxy(t *testing.T) *KeycloakProxy { ...@@ -94,7 +94,7 @@ func newFakeKeycloakProxy(t *testing.T) *KeycloakProxy {
Roles: []string{}, Roles: []string{},
}, },
}, },
CORSConfig: &CORS{}, CORS: &CORS{},
}, },
proxy: new(fakeReverseProxy), proxy: new(fakeReverseProxy),
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment