improve mime_type example

This commit is contained in:
Konstantin Haase 2011-05-01 13:36:29 +02:00
parent a059c196c7
commit d59748c13e
1 changed files with 3 additions and 1 deletions

View File

@ -804,7 +804,9 @@ enable it yourself:
When using <tt>send_file</tt> or static files you may have mime types Sinatra
doesn't understand. Use +mime_type+ to register them by file extension:
mime_type :foo, 'text/foo'
configure do
mime_type :foo, 'text/foo'
end
You can also use it with the +content_type+ helper: