diff options
author | Robin Appelman <robin@icewind.nl> | 2020-04-09 12:46:43 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-04-13 12:57:29 +0200 |
commit | 57403c7020b4ac5e47df21c43882fde4be24456b (patch) | |
tree | 56275cdb03657b9041971f9d992018968bc39b20 /apps/dav | |
parent | c2677682c4a3886f8316bfae120dc1b2fbde39ac (diff) | |
download | nextcloud-server-57403c7020b4ac5e47df21c43882fde4be24456b.tar.gz nextcloud-server-57403c7020b4ac5e47df21c43882fde4be24456b.zip |
dont set headers for cli
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/File.php | 4 |
1 files changed, 3 insertions, 1 deletions
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); + } } } |