* Francesc Guasch <[EMAIL PROTECTED]> [2007-05-24 11:08:57 +0200]:
> ...
> So it looks like it returns the default apache content type
> when is a directory involved:
> DefaultType text/html
>
> Of course, the directory a doesn't even exists, so no autohandler
> could mess the output.
>
> I also fetched the files with wget and both are correct. So the
> dhandler isn't adding html tags, but the browser is fooled by
> the content-type. I still wonder what is wrong and how could I
> fix it ?
Try this:
% $r->content_type('application/pdf');
% $m->clear_buffer;
% # Your PDF output goes here
Cliff
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users