From b299a7bad34941b6b07f655fc2335e52dca06c04 Mon Sep 17 00:00:00 2001 From: Christian Hellsten Date: Sun, 8 Nov 2009 17:38:34 +0200 Subject: [PATCH] Fixed WEBrick JavaScript mimetype. Fixes Firebug script pane --- bin/jekyll | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/jekyll b/bin/jekyll index 3e8469e1..dc4bc3cf 100755 --- a/bin/jekyll +++ b/bin/jekyll @@ -136,10 +136,13 @@ if options['server'] include WEBrick 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