Expect CORS preflight responses to not have a content type
https://github.com/cyu/rack-cors/pull/180
This commit is contained in:
parent
671c041f7d
commit
9e759dc030
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class CORSTest < ActionDispatch::IntegrationTest
|
||||||
|
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_equal "*", response.headers["Access-Control-Allow-Origin"]
|
assert_equal "*", response.headers["Access-Control-Allow-Origin"]
|
||||||
assert_equal "text/plain", response.content_type
|
assert_nil response.content_type
|
||||||
assert_equal "", response.body
|
assert_equal "", response.body
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue