summary refs log tree commit
path: root/lib/rack/lint.rb
diff options
context:
space:
mode:
authorJames Tucker <raggi@google.com>2012-12-28 17:02:06 -0500
committerJames Tucker <raggi@google.com>2012-12-28 17:02:06 -0500
commit90650c1d6c676953601425c8e35b612a66a256d0 (patch)
treed2d7a1062dd92d25cc9fa9068a5557a6eedb21eb /lib/rack/lint.rb
parent7f36db01573900ec97ade8e591e37e5f9327ca52 (diff)
downloadrack-90650c1d6c676953601425c8e35b612a66a256d0.tar.gz
Clarify the body.close spec section
 * This item is frequently missed, including in core.
 * This is not a change in semantic requirement, and does not update the SPEC
   version.
Diffstat (limited to 'lib/rack/lint.rb')
-rw-r--r--lib/rack/lint.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb
index 3cd28e5e..3290be06 100644
--- a/lib/rack/lint.rb
+++ b/lib/rack/lint.rb
@@ -529,7 +529,9 @@ module Rack
       ## The Body itself should not be an instance of String, as this will
       ## break in Ruby 1.9.
       ##
-      ## If the Body responds to +close+, it will be called after iteration.
+      ## If the Body responds to +close+, it will be called after iteration. If
+      ## the body is replaced by a middleware after action, the original body
+      ## must be closed first, if it repsonds to close.
       # XXX howto: assert("Body has not been closed") { @closed }