Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix LSWS handler as suggested by George Wang

  • Loading branch information...
commit cd401dfd01dbd8276ae817af2089c8c4d9fda6c4 1 parent 8a9f7c0
@manveru manveru authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/rack/handler/lsws.rb
View
3  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"
Please sign in to comment.
Something went wrong with that request. Please try again.