From c48d52cd4988743979e3ea8bc8e88a03a76f39f7 Mon Sep 17 00:00:00 2001
From: Rohith <gambol99@gmail.com>
Date: Tue, 9 Feb 2016 11:15:13 +0000
Subject: [PATCH] - updating the config

---
 config.go      | 2 +-
 server_test.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.go b/config.go
index 07b4483..a5f1f78 100644
--- a/config.go
+++ b/config.go
@@ -219,7 +219,7 @@ func readOptions(cx *cli.Context, config *Config) (err error) {
 		config.CORS.MaxAge = cx.Duration("cors-max-age")
 	}
 	if cx.IsSet("cors-credentials") {
-		config.CORS.MaxAge = cx.BoolT("cors-credentials")
+		config.CORS.Credentials = cx.BoolT("cors-credentials")
 	}
 	if cx.IsSet("tag") {
 		config.TagData, err = decodeKeyPairs(cx.StringSlice("tag"))
diff --git a/server_test.go b/server_test.go
index 80a1aab..2a0303f 100644
--- a/server_test.go
+++ b/server_test.go
@@ -94,7 +94,7 @@ func newFakeKeycloakProxy(t *testing.T) *KeycloakProxy {
 					Roles:       []string{},
 				},
 			},
-			CORSConfig: &CORS{},
+			CORS: &CORS{},
 		},
 		proxy: new(fakeReverseProxy),
 	}
-- 
GitLab