Permalink
Browse files

Stringify content length

  • Loading branch information...
1 parent a806063 commit 29696a8b6151072ea6e5568e86466aadd8c52439 @jeremy jeremy committed Jun 11, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/action_profiler.rb
View
@@ -40,7 +40,7 @@ def action_profiler(&block)
response.status = '200 OK'
response.headers.delete('Location')
- response.headers['Content-Length'] = response.body.size
+ response.headers['Content-Length'] = response.body.size.to_s
response.headers['Content-Type'] = 'application/octet-stream'
response.headers['Content-Disposition'] = %(attachment; filename="#{File.basename(request.path)}.#{mode}.tree")
end

0 comments on commit 29696a8

Please sign in to comment.