]> source.dussan.org Git - nextcloud-server.git/commit
fix: Do not try to set HTTP response code on already closed connection backport/47971/stable29 47980/head
authorCôme Chilliet <come.chilliet@nextcloud.com>
Sat, 14 Sep 2024 12:20:49 +0000 (14:20 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Sat, 14 Sep 2024 19:21:24 +0000 (19:21 +0000)
commit66f903b5f6d14eba766b817f51cda94f61a092f1
tree5787cefe0745da76b6657f6821377f48265a1a5b
parent5f28aaa6030762f1540c449c59f8c341195110a8
fix: Do not try to set HTTP response code on already closed connection

This avoids a PHP warning in the logs about trying to set the response
 code while the output already started. It’s useless to try to print an
 error page anyway in this situation because the connection was closed
 already.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
lib/private/legacy/OC_Files.php