Skip to content

Commit

Permalink
improve mime_type example
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed May 1, 2011
1 parent a059c19 commit d59748c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit d59748c

Please sign in to comment.