[Zope] set the MIME Type

Maik Jablonski maik.jablonski@uni-bielefeld.de
04 Jun 2002 19:27:27 +0200


On Tue, 2002-06-04 at 19:19, chpeer2002 wrote:
> I need to set the MIME Type of a DTML Method to "application/x-java-
> jnlp-file" but it doesn't work. 
> 
> According to www.zope.org/Members/anser/howto_dtml_mimetype I set the 
> MIME Type in my DTML method (SimpleExample.jnlp) as follows:
> 
> Content-type: application/x-java-jnlp-file
> 
> , but the return of the server is: wrong mime type: text/html
> 
> As anybody an idea?

have you inserted a blank line after your content-type-line?

Content-type: application/x-java-jnlp-file
          <= THIS BLANK LINE IS VERY, VERY IMPORTANT!!!
...your stuff starts here after a blank line...

greetings, maik
-- 
maik jablonski             \   -;~~;-   /                 www.dzug.org
universitaet bielefeld      >   (@@)   <      www.zfl.uni-bielefeld.de
zentrum fuer lehrerbildung / RUN <> GNU \ www.sachunterricht-online.de