From 57403c7020b4ac5e47df21c43882fde4be24456b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 9 Apr 2020 12:46:43 +0200 Subject: [PATCH] dont set headers for cli Signed-off-by: Robin Appelman --- apps/dav/lib/Connector/Sabre/File.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index a7a2470b4f..4e45661605 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); + } } }