summary refs log tree commit
path: root/lib/rack/lint.rb
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-08-30 11:17:31 +1200
committerGitHub <noreply@github.com>2022-08-30 11:17:31 +1200
commitffee3c55281bf6ecf27225cb4929ad5d928f53c6 (patch)
treef998e05f28130f7a2fa6531c5539eceaaacf24c1 /lib/rack/lint.rb
parent6fc4a3225289eb2e4b60ed8b4dd250eb74c85936 (diff)
downloadrack-ffee3c55281bf6ecf27225cb4929ad5d928f53c6.tar.gz
Allow calling close on `rack.input`. (#1956)
Diffstat (limited to 'lib/rack/lint.rb')
-rwxr-xr-xlib/rack/lint.rb5
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