>> I'm seeing an interesting behavior with dhandlers.
>
>http://www.masonhq.com/docs/manual/Devel.html#dhandlers ...
>
>"When using dhandlers under mod_perl, you may find that 
>sometimes Apache 
>will not set a content type for a response. This usually 
>happens when a 
>dhandler handles a request for a non-existent file or 
>directory. You can 
>add a <Location> or <LocationMatch> block containing a SetType 
>directive 
>to your Apache config file, or you can just set the content type 
>dynamically by calling < $r-content_type >>."
>
>So, you can do this...
><%init>
>$r->content_type('text/html');
></%init>

Ah, thanks. From the book I was expecting it to either work or 404, but
this makes sense.

Cheers

Carl

       -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
       Carl Vincent             http://www.netskills.ac.uk/ (URL)
       Systems Manager                       0191 222 5003 (voice)
       NETSKILLS - Quality Internet Training 0191 222 5001  (fax)


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to