Re: [twsocket] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas

2008-04-10 Thread DZ-Jay
On Apr 9, 2008, at 03:45, Bjørnar Nielsen wrote: The comment about the registry was there before I made any changes. My only change was to add 'text/xml' as content-type for extension 'xml'. For now my only need is this extra content-type, not another way of managing the list of

Re: [twsocket] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas

2008-04-09 Thread Bjørnar Nielsen
Hello, The comment about the registry was there before I made any changes. My only change was to add 'text/xml' as content-type for extension 'xml'. For now my only need is this extra content-type, not another way of managing the list of content-types. When using Flash, if you have the need

[twsocket] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas

2008-04-08 Thread Bjørnar Nielsen
Se the new content-type at the bottom (xml): function DocumentToContentType(FileName : String) : String; var Ext : String; begin { We probably should use the registry to find MIME type for file types } Ext := LowerCase(ExtractFileExt(FileName)); if Length(Ext) 1 then

Re: [twsocket] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas

2008-04-08 Thread DZ-Jay
On Apr 8, 2008, at 09:45, Bjørnar Nielsen wrote: { We probably should use the registry to find MIME type for file types } Hello: I don't agree that the Registry should be used, because then you limit the application to those MIME types registered at the local host. What I