From 5d4f82fba0bbe94f5413c5bc7cc4ba8d246f464e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 16 Nov 2023 11:25:17 +0100 Subject: [PATCH] fix: Set expect guzzle option to false MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This option can be removed once Collabora Online has proper support for the Expect: 100-Continue header - until then this will avoid issues with larger file previews Signed-off-by: Julius Härtl --- lib/Preview/Office.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Preview/Office.php b/lib/Preview/Office.php index 666979d7b1..747b082b9f 100644 --- a/lib/Preview/Office.php +++ b/lib/Preview/Office.php @@ -78,7 +78,11 @@ public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) { } $client = $this->clientService->newClient(); - $options = ['timeout' => 25]; + $options = [ + 'timeout' => 25, + // FIXME: Can be removed once https://github.com/CollaboraOnline/online/issues/6983 is fixed upstream + 'expect' => false, + ]; if ($this->config->getAppValue('richdocuments', 'disable_certificate_verification') === 'yes') { $options['verify'] = false;