diff options
Diffstat (limited to 'lib/rack/content_type.rb')
-rw-r--r-- | lib/rack/content_type.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rack/content_type.rb b/lib/rack/content_type.rb index 78ba43b7..010cc37b 100644 --- a/lib/rack/content_type.rb +++ b/lib/rack/content_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'rack/utils' module Rack @@ -19,7 +21,7 @@ module Rack status, headers, body = @app.call(env) headers = Utils::HeaderHash.new(headers) - unless STATUS_WITH_NO_ENTITY_BODY.include?(status) + unless STATUS_WITH_NO_ENTITY_BODY.key?(status.to_i) headers[CONTENT_TYPE] ||= @content_type end |