Skip to content

Commit

Permalink
Fix LSWS handler as suggested by George Wang
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Oct 23, 2009
1 parent 8a9f7c0 commit cd401df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rack/handler/lsws.rb
@@ -1,5 +1,6 @@
require 'lsapi'
require 'rack/content_length'
require 'rack/rewindable_input'

module Rack
module Handler
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit cd401df

Please sign in to comment.