From 9e759dc030b67a5a5d9261d59d6716618a64c15d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 28 Mar 2019 08:45:58 +0000 Subject: [PATCH] Expect CORS preflight responses to not have a content type https://github.com/cyu/rack-cors/pull/180 --- test/integration/cors_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/cors_test.rb b/test/integration/cors_test.rb index 9ff7e360e..82e834646 100644 --- a/test/integration/cors_test.rb +++ b/test/integration/cors_test.rb @@ -9,7 +9,7 @@ class CORSTest < ActionDispatch::IntegrationTest assert_response :success assert_equal "*", response.headers["Access-Control-Allow-Origin"] - assert_equal "text/plain", response.content_type + assert_nil response.content_type assert_equal "", response.body end -- 2.39.5