XHTML with WEBrick

R

R. Mark Volkmann

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

R. Mark Volkmann

Quoting "R. Mark Volkmann said:
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'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,489
Latest member
BrigidaD91

Latest Threads

Top