I can’t get MiniProfiler to run with Sinatra.
I get the following error:
Rack::Lint::LintError: No Content-Type header found
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/lint.rb:19:in assert' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/lint.rb:476:in
check_content_type’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/lint.rb:54:in _call' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/lint.rb:36:in
call’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/lint.rb:48:in _call' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/lint.rb:36:in
call’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in call' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
call’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/shotgun-0.9/lib/shotgun/loader.rb:86:in proceed_as_child' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/shotgun-0.9/lib/shotgun/loader.rb:31:in
call!’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/shotgun-0.9/lib/shotgun/loader.rb:18:in call' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/shotgun-0.9/lib/shotgun/favicon.rb:12:in
call’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/shotgun-0.9/lib/shotgun/static.rb:14:in call' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/builder.rb:134:in
call’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/thin-1.3.1/lib/thin/connection.rb:80:in block in pre_process' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/thin-1.3.1/lib/thin/connection.rb:78:in
catch’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/thin-1.3.1/lib/thin/connection.rb:78:in pre_process' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/thin-1.3.1/lib/thin/connection.rb:53:in
process’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/thin-1.3.1/lib/thin/connection.rb:38:in receive_data' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
run_machine’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in
start’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/thin-1.3.1/lib/thin/server.rb:159:in start' /Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/rack-1.4.1/lib/rack/handler/thin.rb:13:in
run’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/shotgun-0.9/bin/shotgun:156:in <top (required)>' bin/shotgun:16:in
load’
bin/shotgun:16:in `’