[daisy] Automatic HTMLHelp Publishing

Robert Kindl rob at exec.cz
Mon Apr 16 12:18:23 CDT 2007


> > Thanks - these classes was very helpfull.
> > I made some customizations to them (
> >
> > Now I have problem with download of generated HTMLHelp .chm file
> >
> > When I click on following URL i will get content of this binary file as
text
> > which is obviosly nonsense.
> >
http://server:8888/books/sandbox_book--20070415-233831/publications/htmlhelp/output/book.chm
> >
> > I have no idea how to make "cocoon" to serve this file as mime type
> > application/mshelp (or something else appropriate).
>
> So what mime type is used now? For non-known file extensions I think
> application/octet-stream is used.

This is response from Daisy - it doesn't contain Content-Type at all:
HTTP/1.1 200 OK
Date: Mon, 16 Apr 2007 17:09:53 GMT
Server: Jetty/5.1.10 (Windows 2003/5.2 x86 java/1.5.0_11
X-Cocoon-Version: 2.1.11-dev
X-Daisy-Version: 2.0 (build: outertho-040c9b/20070403 15:19:17+0200; run:
Windows 2003/x86/5.2 java/1.5.0_11-b03)
Accept-Ranges: none
Last-Modified: Sun, 15 Apr 2007 21:38:37 GMT
Content-Length: 285900

This is response from some "IIS" server (simple download of .chm file) - it
sets Content-Type to application/octet-stream:
HTTP/1.1 200 OK
Content-Length: 63264
Content-Type: application/octet-stream
Last-Modified: Sat, 14 Apr 2007 22:20:11 GMT
Accept-Ranges: bytes
ETag: "42bf910e37ec71:589f"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 16 Apr 2007 17:11:11 GMT

So my questions is how to make "cocoon" to serve this file as mime type
application/octet-stream?

Rob




More information about the daisy mailing list