diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-08-30 11:17:31 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 11:17:31 +1200 |
commit | ffee3c55281bf6ecf27225cb4929ad5d928f53c6 (patch) | |
tree | f998e05f28130f7a2fa6531c5539eceaaacf24c1 /lib/rack/lint.rb | |
parent | 6fc4a3225289eb2e4b60ed8b4dd250eb74c85936 (diff) | |
download | rack-ffee3c55281bf6ecf27225cb4929ad5d928f53c6.tar.gz |
Allow calling close on `rack.input`. (#1956)
Diffstat (limited to 'lib/rack/lint.rb')
-rwxr-xr-x | lib/rack/lint.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb index 7baca867..547e6a1c 100755 --- a/lib/rack/lint.rb +++ b/lib/rack/lint.rb @@ -478,9 +478,10 @@ module Rack } end - ## * +close+ must never be called on the input stream. + ## * +close+ can be called on the input stream to indicate that the + ## any remaining input is not needed. def close(*args) - raise LintError, "rack.input#close must not be called" + @input.close(*args) end end |