dont set headers for cli

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2020-04-09 12:46:43 +02:00 committed by Roeland Jago Douma
parent c2677682c4
commit 57403c7020
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 3 additions and 1 deletions

View File

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