From: Robin Appelman Date: Thu, 9 Apr 2020 10:46:43 +0000 (+0200) Subject: dont set headers for cli X-Git-Tag: v19.0.0beta3~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F19351%2Fhead;p=nextcloud-server.git dont set headers for cli Signed-off-by: Robin Appelman --- diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index a7a2470b4f6..4e456616059 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -676,6 +676,8 @@ class File extends Node implements IFile { } protected function header($string) { - \header($string); + if (!\OC::$CLI) { + \header($string); + } } }