]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont set headers for cli 19351/head
authorRobin Appelman <robin@icewind.nl>
Thu, 9 Apr 2020 10:46:43 +0000 (12:46 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 13 Apr 2020 10:57:29 +0000 (12:57 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/dav/lib/Connector/Sabre/File.php

index a7a2470b4f63b2add3097d9a0cf5b74f707b2160..4e45661605991353ccfadfe6f7e9274f7d9df3a5 100644 (file)
@@ -676,6 +676,8 @@ class File extends Node implements IFile {
        }
 
        protected function header($string) {
-               \header($string);
+               if (!\OC::$CLI) {
+                       \header($string);
+               }
        }
 }