diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-06-25 14:47:15 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-06-25 14:47:15 -0500 |
commit | 7837da41a378a69f88763701291a79ef55f14dea (patch) | |
tree | 925ac04f3b121db2b2ab7b03b8ac3bcc341104ad /actionpack/lib/action_controller | |
parent | 7aa730440c2143051b46c0857e637100f9367628 (diff) | |
download | rails-7837da41a378a69f88763701291a79ef55f14dea.tar.gz rails-7837da41a378a69f88763701291a79ef55f14dea.tar.bz2 rails-7837da41a378a69f88763701291a79ef55f14dea.zip |
send_data should set Content-Length as a string
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/base/streaming.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base/streaming.rb b/actionpack/lib/action_controller/base/streaming.rb index 70a97ccfec..9ff4f25f43 100644 --- a/actionpack/lib/action_controller/base/streaming.rb +++ b/actionpack/lib/action_controller/base/streaming.rb @@ -168,7 +168,7 @@ module ActionController #:nodoc: end headers.merge!( - 'Content-Length' => options[:length], + 'Content-Length' => options[:length].to_s, 'Content-Disposition' => disposition, 'Content-Transfer-Encoding' => 'binary' ) |