diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-06 09:39:31 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-06 09:39:31 +0000 |
commit | 3405fb3deab217d613b9584dba71da754e1dc7a9 (patch) | |
tree | d8120c8c934595c7c0fd1a59edada1fd2cc607fa /actionpack/lib/action_controller | |
parent | 551f6e9beec301e288c1a6d253cfa5a08f609238 (diff) | |
download | rails-3405fb3deab217d613b9584dba71da754e1dc7a9.tar.gz rails-3405fb3deab217d613b9584dba71da754e1dc7a9.tar.bz2 rails-3405fb3deab217d613b9584dba71da754e1dc7a9.zip |
Rewind stdin if possible after multipart parsing.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7758 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 68a5ea3701..e9a2e797dd 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -598,6 +598,7 @@ module ActionController end raise EOFError, "bad boundary end of body part" unless boundary_end=~/--/ + body.rewind if body.respond_to?(:rewind) params end end |