summary refs log tree commit
diff options
context:
space:
mode:
authorMichael Fellinger <m.fellinger@gmail.com>2009-10-23 17:49:03 +0900
committerMichael Fellinger <m.fellinger@gmail.com>2009-10-23 17:49:03 +0900
commitcd401dfd01dbd8276ae817af2089c8c4d9fda6c4 (patch)
tree9a723f167b781b6543ed252063f54f980df9d2d0
parent8a9f7c027cc744f42c84d168baadf12cf5df02c5 (diff)
downloadrack-cd401dfd01dbd8276ae817af2089c8c4d9fda6c4.tar.gz
Fix LSWS handler as suggested by George Wang
-rw-r--r--lib/rack/handler/lsws.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rack/handler/lsws.rb b/lib/rack/handler/lsws.rb
index b4ddf4bb..e261003d 100644
--- a/lib/rack/handler/lsws.rb
+++ b/lib/rack/handler/lsws.rb
@@ -1,5 +1,6 @@
 require 'lsapi'
 require 'rack/content_length'
+require 'rack/rewindable_input'
 
 module Rack
   module Handler
@@ -38,6 +39,8 @@ module Rack
         ensure
           body.close if body.respond_to? :close
         end
+      ensure
+        rack_input.close
       end
       def self.send_headers(status, headers)
         print "Status: #{status}\r\n"