Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XHTML with WEBrick

2 views
Skip to first unread message

R. Mark Volkmann

unread,
Jun 25, 2005, 5:38:01 PM6/25/05
to
How can I configure WEBrick to treat requests for XHTML files just like HTML
files? I think what I need is for it to correctly set the content type of the
response so that the web browser renders it correctly.

--
R. Mark Volkmann
Partner, Object Computing, Inc.


R. Mark Volkmann

unread,
Jun 25, 2005, 8:54:14 PM6/25/05
to
Quoting "R. Mark Volkmann" <ma...@ociweb.com>:

> How can I configure WEBrick to treat requests for XHTML files just like HTML
> files? I think what I need is for it to correctly set the content type of
> the
> response so that the web browser renders it correctly.

I figured it out.

mimeTypes = server.config[:MimeTypes]
mimeTypes['xhtml'] = 'text/html'

0 new messages