summary refs log tree commit homepage
path: root/lib/rainbows/event_machine.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-18 06:47:52 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-18 07:44:55 +0000
commitfd1ec829c8c941143c8ae70b18e51838bc51da73 (patch)
treeeb000f1e56e78334692c699aea5bb36f43a93289 /lib/rainbows/event_machine.rb
parented9f3e90939cfa9efcc6e5e9382f1e1f40c49834 (diff)
HeaderHash objects can only be used as headers without
violating Rack::Lint in Rack 1.1.0 or later.
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r--lib/rainbows/event_machine.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb
index e5560d3..6ba536b 100644
--- a/lib/rainbows/event_machine.rb
+++ b/lib/rainbows/event_machine.rb
@@ -118,7 +118,7 @@ module Rainbows
         if st.file?
           headers.delete('Transfer-Encoding')
           headers['Content-Length'] ||= st.size.to_s
-          response = [ response[0], headers.to_hash, [] ]
+          response = [ response[0], headers, [] ]
           HttpResponse.write(self, response, out)
           stream = stream_file_data(body.to_path)
           stream.callback { quit } unless alive
@@ -130,7 +130,7 @@ module Rainbows
           else
             out[0] = CONN_CLOSE
           end
-          response = [ response[0], headers.to_hash, [] ]
+          response = [ response[0], headers, [] ]
           HttpResponse.write(self, response, out)
           if do_chunk
             EM.watch(io, ResponseChunkPipe, self).notify_readable = true