Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use key? rather than hash access and double bang

commit 4453f50aa0d36f0fca08a19d75270c7fb28d2b74 1 parent 1569a98
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rack/response.rb
View
2  lib/rack/response.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.