]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/cors_test.rb
Expect CORS preflight responses to not have a content type
[rails.git] / test / integration / cors_test.rb
index 9ff7e360e50f1c903342e293da2659dfe2706c23..82e8346469cff7828e221fff90faada2164a8e12 100644 (file)
@@ -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