diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-20 17:54:06 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-20 17:54:06 +0000 |
commit | bbd3e3966876ff76f33fee5b633004a1c636688c (patch) | |
tree | a505faea300133a6284c967b682168899af4c4ee /actionpack/lib/action_controller/cgi_ext | |
parent | 7306675fe276a7586afa8526068e4698a6d360cf (diff) | |
download | rails-bbd3e3966876ff76f33fee5b633004a1c636688c.tar.gz rails-bbd3e3966876ff76f33fee5b633004a1c636688c.tar.bz2 rails-bbd3e3966876ff76f33fee5b633004a1c636688c.zip |
Fixed no-binding fragment caching
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext')
-rw-r--r-- | actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb index b494674c91..706654e52b 100644 --- a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb +++ b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb @@ -16,11 +16,11 @@ class CGI #:nodoc: end private - def multipart_form_boundary - multipart_form_boundary_re = %r|\Amultipart/form-data.*boundary=\"?([^\";,]+)\"?|n # " ruby-mode - + MULTIPART_FORM_BOUNDARY_RE = %r|\Amultipart/form-data.*boundary=\"?([^\";,]+)\"?|n + + def multipart_form_boundary if env_table['REQUEST_METHOD'] == 'POST' - multipart_form_boundary_re.match(env_table['CONTENT_TYPE']).to_a.pop + MULTIPART_FORM_BOUNDARY_RE.match(env_table['CONTENT_TYPE']).to_a.pop end end |