diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-02-07 16:46:50 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-02-07 16:46:50 +0000 |
commit | 8e6638afa4b9fe7a361c81e6d2ede77951b81aff (patch) | |
tree | 2214ef62e23185938434c226ce6da2185222b830 /actionpack/lib | |
parent | 689e27567e2a248e262945c52266340d7385aeed (diff) | |
download | rails-8e6638afa4b9fe7a361c81e6d2ede77951b81aff.tar.gz rails-8e6638afa4b9fe7a361c81e6d2ede77951b81aff.tar.bz2 rails-8e6638afa4b9fe7a361c81e6d2ede77951b81aff.zip |
Fix bug with setting Request#format= after the getter has cached the value. Closes #10889 [cch1]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8811 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index e3892037d8..df8dbdc789 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -113,7 +113,7 @@ module ActionController # end def format=(extension) parameters[:format] = extension.to_s - format + @format = Mime::Type.lookup_by_extension(parameters[:format]) end # Returns true if the request's "X-Requested-With" header contains |