Re: [dancer-users] Content-disposition-header.
On Mon, Sep 28, 2015 at 7:00 AM, <dancer-users-request@dancer.pm> wrote:
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'; }; Only these: Content-Length439Content-Typetext/html; charset=utf-8DateMon, 28 Sep 2015 13:26:01 GMTServerHTTP::Server::PSGI Do not use Content-disposition-header unless you have a reason to need it: http://stackoverflow.com/questions/1012437/uses-of-content-disposition-in-an... cheers -- Rick
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
participants (2)
-
Rick Leir -
WK