[dancer-users] Content-disposition-header.
WK
wanradt at gmail.com
Mon Sep 28 14:54:19 BST 2015
2015-09-28 16:32 GMT+03:00 Rick Leir <richard.leir at canadiana.ca>:
>> 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
More information about the dancer-users
mailing list