]> source.dussan.org Git - nextcloud-server.git/commit
fix: Do not try to set HTTP response code on already closed connection backport/47971/stable28 47979/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:19:59 +0000 (19:19 +0000)
commit045dd40ab12fba1be41c4466e143f13332fd5f7d
tree399c8321555dc893c00aef023d208e218b582ea4
parenta8522a7d48fbb1bb1f35544ce4ba2abd8fd8c1bb
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