From 602a252364e09dcc000e4b796814df4ea64f0727 Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Fri, 8 Jan 2010 18:59:35 -0800 Subject: [PATCH] add javascript mime type for webrick. fixes #98 --- History.txt | 1 + bin/jekyll | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/History.txt b/History.txt index d01f63b4..29a6a2dd 100644 --- a/History.txt +++ b/History.txt @@ -6,6 +6,7 @@ * Allow .mkd as markdown extension * Use $stdout/err instead of constants (#99) * Properly wrap code blocks (#91) + * Add javascript mime type for webrick (#98) == 0.5.5 * Bug Fixes diff --git a/bin/jekyll b/bin/jekyll index 3e8469e1..6e03d48b 100755 --- a/bin/jekyll +++ b/bin/jekyll @@ -137,9 +137,13 @@ if options['server'] FileUtils.mkdir_p(destination) + mime_types = WEBrick::HTTPUtils::DefaultMimeTypes + mime_types.store 'js', 'application/javascript' + s = HTTPServer.new( :Port => options['server_port'], - :DocumentRoot => destination + :DocumentRoot => destination, + :MimeTypes => mime_types ) t = Thread.new { s.start