rack-insight 0.5.10 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/rack/insight/toolbar.rb +5 -1
- data/lib/rack/insight/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/rack/insight/toolbar.rb
CHANGED
@@ -33,7 +33,11 @@ module Rack::Insight
|
|
33
33
|
|
34
34
|
def inject_toolbar(response)
|
35
35
|
full_body = response.body.join
|
36
|
-
|
36
|
+
|
37
|
+
toolbar = render
|
38
|
+
toolbar.force_encoding('UTF-8') if RUBY_VERSION > '1.9.0'
|
39
|
+
|
40
|
+
full_body.sub! /<\/body>/, toolbar + "</body>"
|
37
41
|
|
38
42
|
response["Content-Length"] = full_body.size.to_s
|
39
43
|
|
data/lib/rack/insight/version.rb
CHANGED