Skip to content

Commit 9b4637b

Browse files
authored
Merge pull request #47980 from nextcloud/backport/47971/stable29
[stable29] fix: Do not try to set HTTP response code on already closed connection
2 parents 6530553 + 66f903b commit 9b4637b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/private/legacy/OC_Files.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ public static function get($dir, $files, $params = null) {
233233
} catch (\OCP\Files\ConnectionLostException $ex) {
234234
self::unlockAllTheFiles($dir, $files, $getType, $view, $filename);
235235
OC::$server->getLogger()->logException($ex, ['level' => \OCP\ILogger::DEBUG]);
236-
\OC_Template::printErrorPage('Connection lost', $ex->getMessage(), 200);
236+
/* We do not print anything here, the connection is already closed */
237+
die();
237238
} catch (\Exception $ex) {
238239
self::unlockAllTheFiles($dir, $files, $getType, $view, $filename);
239240
OC::$server->getLogger()->logException($ex);

0 commit comments

Comments
 (0)