Thanks, I'm using v 7.51, but somehow overlooked new demo and thought
the mime-type related component (and your comments) are for optional usage,
that is it allows for providing additional types which are rare and application
specific. Javascript is not in this number, obviously, so I supposed it should
be supported rightaway by the core.

I think loading hundreds of types from Registry when 'js' is missing in the
default list is overkill, because most of them are not Internet-involved.
So basicly, my suggestion remains almost the same but just changes its
landing point: now I'd propose to revise TMimeTypeList.Create,
where the default types are registered, and populate it with the omitted
types, which should be there by default, imho.

Best wishes,
Stan

----- Original Message ----- From: "Angus Robertson - Magenta Systems Ltd" <an...@magsys.co.uk>
To: <twsocket@elists.org>
Sent: Saturday, November 10, 2012 2:57 PM
Subject: Re: [twsocket] Minor omission fixed for improved Web-serveroperation


Did you mean obsolete in V8 trunk? In the latest stable V7 it is used by default.

It was added in V7.46.  The old stuff is left behind for backward
compatibility but will not be enhanced which is what you requested.
It's not clear how to switch to the mode that mime-types to be read from Windows Registry by default?

You drop TMimeTypesList onto the form and attach it to all your server
instances, or add it in code.
Look at the OverbyteIcsWebServ demo to see how it's attached, and
OverbyteIcsMimeDemo allows you to see what MIME types it picks up from
the registry and how to modify the list.
The registry does include: .svg=image/svg+xml but not
application/javascript, although it is in the mime.types files used as an
alternative. Or you can add it using the AddContentType method.
Angus


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to