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 conten

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

2008-04-09 Thread Bjørnar Nielsen
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DZ-Jay Sent: 8. april 2008 16:11 To: ICS support mailing Subject: Re: [twsocket] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas On Apr 8, 2008, at 09:45, Bjørnar Nielsen wrote: > { We

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 propo

[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