Fix streaming responses in Caddy

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl
2026-03-18 15:53:36 +01:00
committed by Simon L.
parent 9a6b74dd16
commit b169790488

View File

@@ -403,6 +403,7 @@ readonly class DockerController {
->withBody(new NonBufferedBody())
->withHeader('Content-Type', 'text/html; charset=utf-8')
->withHeader('X-Accel-Buffering', 'no')
->withHeader('Content-Length', '-1')
->withHeader('Cache-Control', 'no-cache');
// Text written into this body is immediately sent to the client, without waiting for later content.