in reply to Re^4: Dancer::send_file only for POST?
in thread Solved: Dancer::send_file doesn't work with POST? ( Angular JS hijacks the response)
Thanks for your example. I had originally misunderstood your post in that it seemed that POST works but GET fails. But from reading your code, it seems to be the other way around.
I found Dancer diagnostics to be horrible and do not trust its log anymore. Have you made sure that warnings do not get treated as fatal by Dancer? Maybe trace that the POST handler actually gets invoked by doing print-debugging.
If all else fails, redirect to a GET handler from your POST handler:
post '/test/csv' => sub { return redirect '/test/csv'; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Dancer::send_file only for POST?
by 1nickt (Canon) on Nov 11, 2015 at 15:02 UTC |