[Dancer-users] send_file Content-Disposition

sawyer x xsawyerx at gmail.com
Mon Feb 7 22:52:05 CET 2011


On Mon, Feb 7, 2011 at 11:44 PM, Flavio Poletti <polettix at gmail.com> wrote:

> On Mon, Feb 7, 2011 at 8:21 PM, sawyer x <xsawyerx at gmail.com> wrote:
>
>>  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.
>>
>
> Do you mean that header and send_file should play well together like the OP
> is hoping,
>

Yup! :)

Any ideas, comments?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110207/db6261a9/attachment.htm>


More information about the Dancer-users mailing list