Skip to content

Commit

Permalink
Fix wrong result in X-Rack-CORS header
Browse files Browse the repository at this point in the history
Should return miss instead of preflight-hit
  • Loading branch information
cyu committed Feb 1, 2017
1 parent 6b1fb8d commit 331f8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def append_header(headers)
preflight? ? 'preflight-hit' : 'hit'
else
[
(preflight? ? 'preflight-miss' : 'preflight-hit'),
(preflight? ? 'preflight-miss' : 'miss'),
miss_reason
].join('; ')
end
Expand Down

0 comments on commit 331f8f2

Please sign in to comment.