From: Colin M. <co...@ch...> - 2006-05-08 23:44:48
|
On Thu, 2006-05-04 at 09:55 +0200, Matthias Hoffmann wrote: > I posted this here and there before and I don't want to get on your nervs, > but I can't solve this on my own: I thought it'd been answered. > But with 3.5.x, if I ask for test/index, and there is an index.tml, > the html-source-code is returned. Hm. If i > explicitely ask for index.tml then everything looks ok. > > The consequence is: I have to change hundrets of webpages which reference */index to */index.tml, or users the users > will get back raw html..... > > Is it really true? If the behaviour changes somewhere between 3.4.x and 3.5.x, > why isn't this configurable (compatibility mode etc.)? > > Is there any workaround? There is a fix. The page is being returned, but it's being returned with a mime type of text/plain, because no suffix is provided on the URL to allow tclhttpd to guess the desired mime type. The fix is to [set ::MimeType() text/html] which will make the default mime type that, instead of text/plain, which is its current (and, IMHO, not unreasonable default.) If this doesn't fix the problem for you, let me know. Colin. |