Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed that the content-type for some browsers could include an additi…

…onal \r which made wonky things happen #1067 [Thomas Fuchs]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 2119e0699a182575349b1c3a311b182e171e097c 1 parent 023b685
@dhh dhh authored
View
2  actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fixed that the content-type for some browsers could include an additional \r which made wonky things happen #1067 [Thomas Fuchs]
+
* Fixed that radio buttons shouldn't have a default size attribute #1074 [hendrik@mans.de]
* Added ActionView::Helpers::InstanceTag::DEFAULT_RADIO_OPTIONS that contains a hash of default options for radio buttons #1074 [hendrik@mans.de]
View
2  actionpack/lib/action_controller/base.rb
@@ -776,7 +776,7 @@ def send_file_headers!(options)
@headers.update(
'Content-Length' => options[:length],
- 'Content-Type' => options[:type],
+ 'Content-Type' => options[:type].strip, # fixes a problem with extra '\r' with some browsers
'Content-Disposition' => disposition,
'Content-Transfer-Encoding' => 'binary'
);
Please sign in to comment.
Something went wrong with that request. Please try again.