lib/rack/xsl.rb in rack-xsl-0.2.7 vs lib/rack/xsl.rb in rack-xsl-0.2.8
- old
+ new
@@ -32,9 +32,10 @@
# If setup includes paths to exclude from xslt processing, check them
checknoxsl(env) if @options[:noxsl]
# Obtain entire request body, ensuring sure it can be processed
myxml = getResponse(body)
+ body.close if body.respond_to?(:close)
# One more check for an empty respone
return original_response if myxml.empty?
# Should XSL file be reloaded?