vendor/rack/lib/rack/showexceptions.rb in relevance-castronaut-0.5.4 vs vendor/rack/lib/rack/showexceptions.rb in relevance-castronaut-0.6.0

- old
+ new

@@ -20,10 +20,14 @@ end def call(env) @app.call(env) rescue StandardError, LoadError, SyntaxError => e - [500, {"Content-Type" => "text/html"}, pretty(env, e)] + backtrace = pretty(env, e) + [500, + {"Content-Type" => "text/html", + "Content-Length" => backtrace.join.size.to_s}, + backtrace] end def pretty(env, exception) req = Rack::Request.new(env) path = (req.script_name + req.path_info).squeeze("/")