Permalink
Browse files

Fix LSWS handler as suggested by George Wang

  • Loading branch information...
1 parent 8a9f7c0 commit cd401dfd01dbd8276ae817af2089c8c4d9fda6c4 @manveru manveru committed Oct 23, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 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 @@ def self.serve(app)
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"

0 comments on commit cd401df

Please sign in to comment.