[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

XHTML with WEBrick

R. Mark Volkmann

6/25/2005 9:38:00 PM

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.


1 Answer

R. Mark Volkmann

6/26/2005 12:54:00 AM

0

Quoting "R. Mark Volkmann" <mark@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'

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