Remove setFilename, getFilename from Session::Http, and use Plack::Response methods instead.
This commit is contained in:
parent
fd8f03a186
commit
8b6bbdb9f7
9 changed files with 28 additions and 77 deletions
|
|
@ -1816,8 +1816,8 @@ sub www_ical {
|
|||
|
||||
|
||||
# Set mime of text/icalendar
|
||||
#$self->session->response->content_type("text/plain");
|
||||
$self->session->http->setFilename("feed.ics","text/calendar");
|
||||
$self->session->response->header( 'Content-Disposition' => qq{attachment; filename="feed.ics"});
|
||||
$self->session->response->content_type("text/calendar");
|
||||
return $ical;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue