Skip to content

Commit

Permalink
fixup! Migrate to multi-get requests
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Nov 4, 2018
1 parent 7aa197e commit 2267cf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/dav/lib/CardDAV/MultiGetExportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ public function httpReport(RequestInterface $request, ResponseInterface $respons
}, '');

// Build and override the response
$filename = 'vcfexport-' . date('Y-m-d') . $filenameExtension;
$filename = 'vcfexport-' . date('Y-m-d') . '.vcf';
$response->setHeader('Content-Disposition', 'attachment; filename="' . $filename . '"');
$response->setHeader('Content-Type', 'text/directory');

$response->setStatus(200);
$response->setBody($output);

return true;
Expand Down

0 comments on commit 2267cf1

Please sign in to comment.