[Dancer-users] send_file Content-Disposition

sawyer x xsawyerx at gmail.com
Mon Feb 7 20:21:39 CET 2011


On Mon, Feb 7, 2011 at 2:27 AM, Matthew Vickers <mvickers at quispiam.com>wrote:

> Hi All,
>

Hey Matthew! :)


>
> I was having terrible trouble using send_file and the Content-Disposition
> header.  I found that I needed to set the Content-Disposition header
> manually in the reponse object returned from send_file.
>

I think send_file() should be a one-stop-shop for sending files to the user.
That means that it should also set all the headers you want for you. I guess
my question would be why isn't it doing so, and made you specify the header
yourself.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110207/e6ae488f/attachment.htm>


More information about the Dancer-users mailing list