From d61d62379fa040fd83436afab881a26942ac2332 Mon Sep 17 00:00:00 2001 From: Andrew Tian Date: Sat, 23 Mar 2013 02:53:10 -0500 Subject: [PATCH] Let WEBrick serve SVGs with proper content-type --- _plugins/svg.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 _plugins/svg.rb diff --git a/_plugins/svg.rb b/_plugins/svg.rb new file mode 100644 index 00000000..f9ddde68 --- /dev/null +++ b/_plugins/svg.rb @@ -0,0 +1,4 @@ +require 'webrick' +include WEBrick + +WEBrick::HTTPUtils::DefaultMimeTypes.store 'svg', 'image/svg+xml' \ No newline at end of file