Permalink
Browse files

Use chop! instead of chop! for efficiency

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 62ec1a5 commit 89550ee7e90fa824c99cf4882426d9a5269d0d64 @jamis jamis committed Sep 2, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb
View
2 actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb
@@ -53,7 +53,7 @@ def read_params_from_post
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

0 comments on commit 89550ee

Please sign in to comment.