Skip to content

Commit

Permalink
Refs #259 (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-ruby committed Mar 16, 2023
1 parent d47d6a3 commit bd99f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/cors/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def to_headers(env)
'access-control-max-age' => max_age.to_s
}
h['access-control-allow-credentials'] = 'true' if credentials
h
Gem.loaded_specs['rack'].version >= Gem::Version.new('3') ? h : Rack::Utils::HeaderHash.new(h)
end

protected
Expand Down

0 comments on commit bd99f4c

Please sign in to comment.