Skip to content

Commit

Permalink
use key? rather than hash access and double bang
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 14, 2015
1 parent 1569a98 commit 4453f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/response.rb
Expand Up @@ -144,7 +144,7 @@ def redirect?; [301, 302, 303, 307].include? status; end
attr_reader :headers, :original_headers

def include?(header)
!!headers[header]
headers.key? header
end

def content_type
Expand Down

0 comments on commit 4453f50

Please sign in to comment.