diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-01-13 17:21:45 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-01-13 17:21:45 -0600 |
commit | 9775c25824feb35a5c42f3838d21c7e5faba9ca0 (patch) | |
tree | afbb65ffadbd8d16d5ed787aa3c95553e059f322 /actionpack/lib/action_controller/rewindable_input.rb | |
parent | 1adc1496f9152c893e1f08abcb1e5e7272829899 (diff) | |
download | rails-9775c25824feb35a5c42f3838d21c7e5faba9ca0.tar.gz rails-9775c25824feb35a5c42f3838d21c7e5faba9ca0.tar.bz2 rails-9775c25824feb35a5c42f3838d21c7e5faba9ca0.zip |
Update multipart tests to expose (another) bug in Rack's multipart parser
Diffstat (limited to 'actionpack/lib/action_controller/rewindable_input.rb')
-rw-r--r-- | actionpack/lib/action_controller/rewindable_input.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/rewindable_input.rb b/actionpack/lib/action_controller/rewindable_input.rb index 296d8aed22..058453ea68 100644 --- a/actionpack/lib/action_controller/rewindable_input.rb +++ b/actionpack/lib/action_controller/rewindable_input.rb @@ -15,15 +15,19 @@ module ActionController @io.rewind end + def string + @string + end + def method_missing(method, *args, &block) @io.send(method, *args, &block) end private def read_original_io - unless @str - @str = @io.read - @io = StringIO.new(@str) + unless @string + @string = @io.read + @io = StringIO.new(@string) end end end |