From ec7b49794086504abbe4f80f7841ec5618dde32f Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Tue, 3 Jul 2018 09:51:15 -0700 Subject: [PATCH] Fixed cors test Signed-off-by: Vishal Rana --- middleware/cors_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/cors_test.go b/middleware/cors_test.go index 7419ecbf..5a9d5f29 100644 --- a/middleware/cors_test.go +++ b/middleware/cors_test.go @@ -54,7 +54,7 @@ func TestCORS(t *testing.T) { c = e.NewContext(req, rec) req.Header.Set(echo.HeaderOrigin, "localhost") req.Header.Set(echo.HeaderContentType, echo.MIMEApplicationJSON) - cors := CORSWithConfig(CORSConfig{ + cors = CORSWithConfig(CORSConfig{ AllowOrigins: []string{"*"}, AllowCredentials: true, MaxAge: 3600,