Browse files

Don't set Content-Length in Base#response_body= since body may be any…

… Rack-compatible body. Leave it up to the content length middleware.
  • Loading branch information...
1 parent df42d26 commit 1414e2afbba0ab116632ecabf8ed92ddf09dcba4 @jeremy jeremy committed Apr 17, 2009
Showing with 0 additions and 1 deletion.
  1. +0 −1 actionpack/lib/action_controller/new_base/base.rb
View
1 actionpack/lib/action_controller/new_base/base.rb
@@ -42,7 +42,6 @@ def self.call(env)
# :api: plugin
def response_body=(body)
- @_response["Content-Length"] = body.length
@_response.body = body
end

0 comments on commit 1414e2a

Please sign in to comment.