diff --git a/apps/dav/lib/CardDAV/MultiGetExportPlugin.php b/apps/dav/lib/CardDAV/MultiGetExportPlugin.php index 1798c6029ad8c..ac343800f3ce9 100644 --- a/apps/dav/lib/CardDAV/MultiGetExportPlugin.php +++ b/apps/dav/lib/CardDAV/MultiGetExportPlugin.php @@ -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;