mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Let WEBrick serve SVGs with proper content-type
This commit is contained in:
parent
4621b3eed9
commit
d61d62379f
1 changed files with 4 additions and 0 deletions
4
_plugins/svg.rb
Normal file
4
_plugins/svg.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
require 'webrick'
|
||||
include WEBrick
|
||||
|
||||
WEBrick::HTTPUtils::DefaultMimeTypes.store 'svg', 'image/svg+xml'
|
Loading…
Add table
Add a link
Reference in a new issue