Rack::Lint::LintError: No Content-Type header found

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:incheck_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:incall’
/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:incall’
/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:incall’
/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:incall!’
/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:incall’
/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:incall’
/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:incatch’
/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:inprocess’
/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:inrun_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:instart’
/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:inrun’
/Users/terry/.rvm/gems/ruby-1.9.2-p290@seevibes/gems/shotgun-0.9/bin/shotgun:156:in <top (required)>' bin/shotgun:16:inload’
bin/shotgun:16:in `’

Ouch no good … what particular resource was it?

I just figured out the problem was. I was using the shotgun gem and that was what was causing the problem. When I switched to using unicorn, mini-profiler started working.