On Mon, Sep 28, 2015 at 7:00 AM, <[email protected]> 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-http-response-header
cheers -- Rick
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to