New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WEBrick serves JavaScript with wrong Content-Type #98

Closed
christianhellsten opened this Issue Nov 8, 2009 · 2 comments

Comments

Projects
None yet
3 participants
@christianhellsten
Contributor

christianhellsten commented Nov 8, 2009

Firebug refuses to display the script debugger pane because WEBrick serves JavaScript with an incorrect Content-Type header.

This can be fixed by changing bin/jekyll as follows:

139   mime_types = WEBrick::HTTPUtils::DefaultMimeTypes
140   mime_types.store 'js', 'application/javascript'
141 
142   s = HTTPServer.new(
143     :Port            => options['server_port'],
144     :DocumentRoot    => destination,
145     :MimeTypes       => mime_types
146   )
@mojombo

This comment has been minimized.

Contributor

mojombo commented Jan 9, 2010

add javascript mime type for webrick. closed by 602a252

@mojombo

This comment has been minimized.

Contributor

mojombo commented Jan 9, 2010

This is now in master.

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.