2015-09-28 16:32 GMT+03:00 Rick Leir <[email protected]>:

>> Using send_file seems not appropriate, because it sets
>> Content-disposition-header.
>
>
> Strange. I do not get Content-disposition-header in the response from this:
> get '/' => sub {
>     send_file 'index.html';
> };

My mistake, I had impression, that Content-disposition is default for
send_file, but it is set only when filename-option is given:

get '/' => sub {
    send_file( 'index.html', filename => 'index.html' );
};

Wbr,
-- 
Kõike hääd,

Gunnar
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to