mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Optimized clean response handling
This commit is contained in:
@@ -49,7 +49,6 @@ class CalendarApiController extends BaseApiController
|
||||
$vCalendar->addEvent($vEvent);
|
||||
}
|
||||
|
||||
ob_clean(); // Make sure to ONLY return the file
|
||||
$response->write((new CalendarFactory())->createCalendar($vCalendar));
|
||||
$response = $response->withHeader('Content-Type', 'text/calendar; charset=utf-8');
|
||||
return $response->withHeader('Content-Disposition', 'attachment; filename="grocy.ics"');
|
||||
|
Reference in New Issue
Block a user