Skip to content

Commit

Permalink
fixed codegram#11, properly set content-lenght header when serving as…
Browse files Browse the repository at this point in the history
…sets
  • Loading branch information
gucki committed Jul 27, 2011
1 parent a9df07b commit 9a298f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/webconsole/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def call(env)
# Inject the html, css and js code to the view
response_body.gsub!('</body>', "#{code}</body>")

headers['Content-Length'] = (response_body.length + 2).to_s
headers['Content-Length'] = response_body.length.to_s

[status, headers, [response_body]]
end
Expand Down

0 comments on commit 9a298f1

Please sign in to comment.