diff options
author | Jamis Buck <jamis@37signals.com> | 2005-09-02 18:01:26 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-09-02 18:01:26 +0000 |
commit | 89550ee7e90fa824c99cf4882426d9a5269d0d64 (patch) | |
tree | b370718f0e9075d183d96fbbed1c415c7e6e9ff1 | |
parent | 62ec1a53735aa0a4a716f24fc57bf0462f560116 (diff) | |
download | rails-89550ee7e90fa824c99cf4882426d9a5269d0d64.tar.gz rails-89550ee7e90fa824c99cf4882426d9a5269d0d64.tar.bz2 rails-89550ee7e90fa824c99cf4882426d9a5269d0d64.zip |
Use chop! instead of chop! for efficiency
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb | 2 |
1 files changed, 1 insertions, 1 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 d07be9f931..bb8bf9c2de 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 @@ -53,7 +53,7 @@ class CGI #:nodoc: stdinput.binmode if stdinput.respond_to?(:binmode) content = stdinput.read(Integer(env_table['CONTENT_LENGTH'])) || '' # fix for Safari Ajax postings that always append \000 - content = content.chop if content[-1] == 0 + content.chop! if content[-1] == 0 env_table['RAW_POST_DATA'] = content.freeze end |