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


#1

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/[email protected]/gems/rack-1.4.1/lib/rack/lint.rb:19:in assert' /Users/terry/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/lint.rb:476:incheck_content_type’
/Users/terry/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/lint.rb:54:in _call' /Users/terry/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/lint.rb:36:incall’
/Users/terry/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/lint.rb:48:in _call' /Users/terry/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/lint.rb:36:incall’
/Users/terry/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in call' /Users/terry/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:incall’
/Users/terry/.rvm/gems/[email protected]/gems/shotgun-0.9/lib/shotgun/loader.rb:86:in proceed_as_child' /Users/terry/.rvm/gems/[email protected]/gems/shotgun-0.9/lib/shotgun/loader.rb:31:incall!’
/Users/terry/.rvm/gems/[email protected]/gems/shotgun-0.9/lib/shotgun/loader.rb:18:in call' /Users/terry/.rvm/gems/[email protected]/gems/shotgun-0.9/lib/shotgun/favicon.rb:12:incall’
/Users/terry/.rvm/gems/[email protected]/gems/shotgun-0.9/lib/shotgun/static.rb:14:in call' /Users/terry/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/builder.rb:134:incall’
/Users/terry/.rvm/gems/[email protected]/gems/thin-1.3.1/lib/thin/connection.rb:80:in block in pre_process' /Users/terry/.rvm/gems/[email protected]/gems/thin-1.3.1/lib/thin/connection.rb:78:incatch’
/Users/terry/.rvm/gems/[email protected]/gems/thin-1.3.1/lib/thin/connection.rb:78:in pre_process' /Users/terry/.rvm/gems/[email protected]/gems/thin-1.3.1/lib/thin/connection.rb:53:inprocess’
/Users/terry/.rvm/gems/[email protected]/gems/thin-1.3.1/lib/thin/connection.rb:38:in receive_data' /Users/terry/.rvm/gems/[email protected]/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun_machine’
/Users/terry/.rvm/gems/[email protected]/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /Users/terry/.rvm/gems/[email protected]/gems/thin-1.3.1/lib/thin/backends/base.rb:61:instart’
/Users/terry/.rvm/gems/[email protected]/gems/thin-1.3.1/lib/thin/server.rb:159:in start' /Users/terry/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/handler/thin.rb:13:inrun’
/Users/terry/.rvm/gems/ruby-1.9.[email protected]/gems/shotgun-0.9/bin/shotgun:156:in <top (required)>' bin/shotgun:16:inload’
bin/shotgun:16:in `’


#2

Ouch no good … what particular resource was it?


#3

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.