Browse files

add javascript mime type for webrick. fixes #98

  • Loading branch information...
1 parent add546f commit 602a252364e09dcc000e4b796814df4ea64f0727 @mojombo mojombo committed Jan 9, 2010
Showing with 6 additions and 1 deletion.
  1. +1 −0 History.txt
  2. +5 −1 bin/jekyll
View
1 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
View
6 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

0 comments on commit 602a252

Please sign in to comment.