diff options
Diffstat (limited to 'lib/rack/lint.rb')
-rw-r--r-- | lib/rack/lint.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb index 338f7f09..1bc2127f 100644 --- a/lib/rack/lint.rb +++ b/lib/rack/lint.rb @@ -500,6 +500,11 @@ module Rack ## It is also possible to hijack a response after the status and headers ## have been sent. def check_hijack_response(headers, env) + + # this check uses headers like a hash, but the spec only requires + # headers respond to #each + headers = Rack::Utils::HeaderHash.new(headers) + ## In order to do this, an application may set the special header ## <tt>rack.hijack</tt> to an object that responds to <tt>call</tt> ## accepting an argument that conforms to the <tt>rack.hijack_io</tt> |