From 327632014ec157123f55fdf33673b7eb2fd9cf66 Mon Sep 17 00:00:00 2001 From: Matt Keller Date: Thu, 27 Aug 2015 15:23:14 -0400 Subject: [PATCH] cors: Removed new(?) header from test, resolving failure "X-Content-Type-Options" was being autoadded, but none of the test maps took it into account. I saw that "Content-Type" was also being deleted, so I figured that was the best solution for this as well. --- pkg/cors/cors_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cors/cors_test.go b/pkg/cors/cors_test.go index 4feb072d6..90b6b8b97 100644 --- a/pkg/cors/cors_test.go +++ b/pkg/cors/cors_test.go @@ -117,6 +117,7 @@ func TestCORSHandler(t *testing.T) { } // it is set by http package, and there is no need to test it rr.HeaderMap.Del("Content-Type") + rr.HeaderMap.Del("X-Content-Type-Options") if !reflect.DeepEqual(rr.HeaderMap, tt.wheader) { t.Errorf("#%d: header = %+v, want %+v", i, rr.HeaderMap, tt.wheader) }