From ef13181a2333cec8905e011bb49c8f2eeeb418f4 Mon Sep 17 00:00:00 2001 From: andreimarcu Date: Sat, 10 Oct 2015 11:17:38 -0400 Subject: [PATCH] Adjust the csp_test to use the new mux --- csp_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csp_test.go b/csp_test.go index e15ecc3..190c65d 100644 --- a/csp_test.go +++ b/csp_test.go @@ -24,7 +24,7 @@ func TestContentSecurityPolicy(t *testing.T) { Config.siteName = "linx" Config.contentSecurityPolicy = "default-src 'none'; style-src 'self';" Config.xFrameOptions = "SAMEORIGIN" - setup() + mux := setup() w := httptest.NewRecorder() @@ -38,7 +38,7 @@ func TestContentSecurityPolicy(t *testing.T) { frame: testCSPHeaders["X-Frame-Options"], })) - goji.DefaultMux.ServeHTTP(w, req) + mux.ServeHTTP(w, req) for k, v := range testCSPHeaders { if w.HeaderMap[k][0] != v {