diff options
author | James Tucker <raggi@google.com> | 2012-12-28 17:02:06 -0500 |
---|---|---|
committer | James Tucker <raggi@google.com> | 2012-12-28 17:02:06 -0500 |
commit | 90650c1d6c676953601425c8e35b612a66a256d0 (patch) | |
tree | d2d7a1062dd92d25cc9fa9068a5557a6eedb21eb /lib/rack/lint.rb | |
parent | 7f36db01573900ec97ade8e591e37e5f9327ca52 (diff) | |
download | rack-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.rb | 4 |
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 } |