Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

CSS3 @font-face impossible with content-type bug #127

Closed
5v3n opened this Issue · 2 comments

2 participants

Sven Kräuter Konstantin Haase
Sven Kräuter

I just encountered a mean issue with css3 font-face delivery (see attached log).

I thought I already read about a content-type issue, but it seems to be either closed or it's been far too late last night ;-).

I love Sinatra, but I'd also love to see some CSS3 love going in my webapp.

I can't imagine I'm the first one to encounter this Problem & hope to get some helpful advice.

Cheers

Sven Kräuter | 5v3n
---- log ----
[2010-11-26 08:49:22] INFO WEBrick 1.3.1
[2010-11-26 08:49:22] INFO ruby 1.9.2 (2010-08-18) [x86_64-darwin10.4.0]
[2010-11-26 08:49:22] INFO WEBrick::HTTPServer#start: pid=386 port=9292
127.0.0.1 - - [26/Nov/2010 08:49:31] "GET / HTTP/1.1" 200 566 0.0307
127.0.0.1 - - [26/Nov/2010 08:49:31] "GET / HTTP/1.1" 200 566 0.0619
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /watsa HTTP/1.1" 200 1111 0.0216
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /watsa HTTP/1.1" 200 1111 0.0225
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /watsa.css HTTP/1.1" 304 - 0.0013
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /watsa.css HTTP/1.1" 304 - 0.0023
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /Twittnite_watsa_small.gif HTTP/1.1" 304 - 0.0007
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /Twittnite_watsa_small.gif HTTP/1.1" 304 - 0.0024
RuntimeError - Unknown media type: ".woff":
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in content_type'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in
send_file'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:687:in static!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:739:in
dispatch!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in block in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
instance_eval'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in block in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
catch'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/session/cookie.rb:37:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
block in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in synchronize'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:48:in _call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:36:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/content_length.rb:13:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in
service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
run'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread'
RuntimeError - Unknown media type: ".woff":
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in
content_type'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in send_file'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:687:in
static!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:739:in dispatch!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
block in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in instance_eval'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
block in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in catch'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/session/cookie.rb:37:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in block in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in
synchronize'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:48:in
_call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:36:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/content_length.rb:13:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in run'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in
block in start_thread'
RuntimeError: Unknown media type: ".woff"
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in content_type'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in
send_file'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:687:in static!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:739:in
dispatch!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in block in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
instance_eval'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in block in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
catch'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530RuntimeError: Unknown media type: ".woff"
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in
content_type'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in send_file'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:687:in
static!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:739:in dispatch!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
block in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in instance_eval'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
block in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in catch'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in call'
:in
call!' /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/session/cookie.rb:37:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
block in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/session/cookie.rb:37:in `call'

/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in `synchronize' /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in `block in call'

/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in `call'    /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in `synchronize'

/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:48:in `_call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:36:in `call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in `call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in `call'    /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in `call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /headth__-webfont.woff HTTP/1.1" 500 80630 0.0787
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:48:in _call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:36:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/content_length.rb:13:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in
service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
run'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread'
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /headth__-webfont.woff HTTP/1.1" 500 80630 0.0849
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /headoh__-webfont.woff HTTP/1.1" 500 80630 0.0965
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /headoh__-webfont.woff HTTP/1.1" 500 80630 0.1076
RuntimeError - Unknown media type: ".ttf":
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in
content_type'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in send_file'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:687:in
static!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:739:in dispatch!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
block in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in instance_eval'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
block in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in catch'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/session/cookie.rb:37:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in block in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in
synchronize'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:48:in
_call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:36:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/content_length.rb:13:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in run'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in
block in start_thread'
RuntimeError: Unknown media type: ".ttf"
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in content_type'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in
send_file'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:687:in static!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:739:in
dispatch!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in block in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
instance_eval'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in block in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
catch'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/session/cookie.rb:37:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
block in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in synchronize'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
call'
RuntimeError - Unknown media type: ".ttf":
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in content_type'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in
send_file'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:687:in static!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:739:in
dispatch!'
/Users/sven /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:48:in _call'
krauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
block in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in instance_eval'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
block in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in catch'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/g /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:36:in
call'
ems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call'
/Users/svenkra /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
uter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/session/cookie.rb:37:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in block in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in
synchronize'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra- /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in call'
1.1.0/lib/sinatra/base.rb:1142:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:48:in _call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:36:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@ /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/content_length.rb:13:in call'
pledgedrive/gems/rack-1.2.1/lib/rack/content_length.rb:13:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in run'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in
block in start_thread' /Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service'

/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /headth__-webfont.ttf HTTP/1.1" 500 80623 0.0582
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /headth__-webfont.ttf HTTP/1.1" 500 80623 0.0593
RuntimeError: Unknown media type: ".ttf"
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in content_type'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in
send_file'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:687:in static!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:739:in
dispatch!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in block in call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
instance_eval'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in block in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
catch'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
call!'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/session/cookie.rb:37:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
block in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in synchronize'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:48:in _call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/lint.rb:36:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/content_length.rb:13:in call'
/Users/svenkrauter/.rvm/gems/ruby-1.9.2-p0@pledgedrive/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in
service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
run'
/Users/svenkrauter/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /headoh__-webfont.ttf HTTP/1.1" 500 80623 0.0750
127.0.0.1 - - [26/Nov/2010 08:49:35] "GET /headoh__-webfont.ttf HTTP/1.1" 500 80623 0.0774

---- Gems

*** LOCAL GEMS ***

addressable (2.2.2)
bson (1.1.2)
bson_ext (1.1.2)
bundler (1.0.7, 1.0.0)
configuration (1.2.0)
faraday (0.5.3)
faraday_middleware (0.3.0)
hashie (0.4.0)
heroku (1.14.4, 1.13.7)
json_pure (1.4.6)
launchy (0.3.7)
mime-types (1.16)
mongo (1.1.2)
multi_json (0.0.5)
multi_xml (0.2.0)
multipart-post (1.0.1)
rack (1.2.1)
rake (0.8.7)
rest-client (1.6.1)
simple_oauth (0.1.2)
sinatra (1.1.0)
tilt (1.1)
twitter (1.0.0)

Konstantin Haase
Owner

Not supporting it by default is a rack "bug", ttf and woff are not listed in Rack::Mime::MIME_TYPES (https://github.com/rack/rack/blob/master/lib/rack/mime.rb#L36), feel free to open an issue there.

Also, see the "Mime Types" section from the readme:

mime_type :ttf, "application/octet-stream"
mime_type :woff, "application/octet-stream"

Most people don't run into this, as they don't serve static files from Sinatra.
One possible solution would be to always fall back to "application/octet-stream" if the mime type is unknown.

Konstantin Haase
Owner

If file extension is unknown, send_file will always fall back to application/octet-stream rather than complaining. Closed by 6d3d45d.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.