Re: [twsocket] Suggestion for DocumentToContentType

2011-10-22 Thread Angus Robertson - Magenta Systems Ltd
Is there a reason you placed the calls in this sequences? I used that sequence so the main application can check if the MIME type is correct and then change it, ie just handle exceptions. The default MIME code is not exactly processor intensive. why the String parameters are not declared

Re: [twsocket] Suggestion for DocumentToContentType

2011-10-21 Thread Angus Robertson - Magenta Systems Ltd
I also find myself with the need to edit the DocumentToContentType function, each time I update my local copy of ICS. SVN has been updated with a new OverbyteIcsHttpSrv: Oct 21, 2011 V7.41 Angus added OnHttpMimeContentType to allow custom ContentTypes to be supported for unusual file

Re: [twsocket] Suggestion for DocumentToContentType

2011-10-21 Thread RTT
On 21-10-2011 19:18, Angus Robertson - Magenta Systems Ltd wrote: Oct 21, 2011 V7.41 Angus added OnHttpMimeContentType to allow custom ContentTypes to be supported for unusual file extensions. Seems to be working, but why the heck you call the internal DocumentToContentType, even if it is

Re: [twsocket] Suggestion for DocumentToContentType

2011-10-21 Thread Lars Gehre
Oct 21, 2011 V7.41 Angus added OnHttpMimeContentType to allow custom ContentTypes to be supported for unusual file extensions. Very nice. Is there a reason you placed the calls in this sequences? I think procedure THttpConnection.SendDocument[..] begin ErrorSend := FALSE;

Re: [twsocket] Suggestion for DocumentToContentType

2011-10-20 Thread Angus Robertson - Magenta Systems Ltd
I also find myself with the need to edit the DocumentToContentType function, each time I update my local copy of ICS. This has not being addressed yet I get annoyed every time I look at the list of MIME types as well, and have added to it myself in the past. I will do something better in

Re: [twsocket] Suggestion for DocumentToContentType

2011-10-19 Thread RTT
I also find myself with the need to edit the DocumentToContentType function, each time I update my local copy of ICS. This has not being addressed yet, so how about if, instead of the more complex implementation proposed here, an assignable OnDocumentToContentType property is added to the

[twsocket] Suggestion for DocumentToContentType

2011-07-08 Thread Lars Gehre
Hi, after getting chewed out (again!) for forgetting to extend the DocumentToContentType function after an update of ICS, I like to suggest an improvement. As base use a THashedStringlist (or something similar). Fill the list with the default extension/contentType names and values pairs and