diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-04-25 14:04:03 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-04-25 14:04:03 -0500 |
commit | 4f412a10b6125831af34d874927f891f586d0101 (patch) | |
tree | 7992647f31ce4d1dc2e32da5a69e372ff6f56157 /actionpack/lib/action_dispatch/middleware/rewindable_input.rb | |
parent | b69da86ea545b342036fb37a472ec5abefaf3bd5 (diff) | |
download | rails-4f412a10b6125831af34d874927f891f586d0101.tar.gz rails-4f412a10b6125831af34d874927f891f586d0101.tar.bz2 rails-4f412a10b6125831af34d874927f891f586d0101.zip |
Remove RewindableInput middleware since all input MUST be rewindable according to a recent change in the Rack 1.0 SPEC
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/rewindable_input.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/rewindable_input.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/rewindable_input.rb b/actionpack/lib/action_dispatch/middleware/rewindable_input.rb deleted file mode 100644 index c818f28cce..0000000000 --- a/actionpack/lib/action_dispatch/middleware/rewindable_input.rb +++ /dev/null @@ -1,19 +0,0 @@ -module ActionDispatch - class RewindableInput - def initialize(app) - @app = app - end - - def call(env) - begin - env['rack.input'].rewind - rescue NoMethodError, Errno::ESPIPE - # Handles exceptions raised by input streams that cannot be rewound - # such as when using plain CGI under Apache - env['rack.input'] = StringIO.new(env['rack.input'].read) - end - - @app.call(env) - end - end -end |