28 Sep
2015
28 Sep
'15
1:54 p.m.
2015-09-28 16:32 GMT+03:00 Rick Leir <richard.leir@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