From 010f38ea259995c14e3931474fd31303e47c5428 Mon Sep 17 00:00:00 2001
From: the-djmaze <>
Date: Fri, 20 May 2022 16:40:40 +0200
Subject: [PATCH] Centralize Apache flush comment
---
.../v/0.0.0/app/libraries/snappymail/http/stream.php | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/http/stream.php b/snappymail/v/0.0.0/app/libraries/snappymail/http/stream.php
index 847bee9d6..5dccf1d2b 100644
--- a/snappymail/v/0.0.0/app/libraries/snappymail/http/stream.php
+++ b/snappymail/v/0.0.0/app/libraries/snappymail/http/stream.php
@@ -4,6 +4,11 @@ namespace SnappyMail\HTTP;
/**
* Can be used with JavaScript AbstractFetchRemote.streamPerLine(fCallback, sGetAdd, postData)
+ *
+ * Apache mod_fastcgi needs the -flush option
+ * Apache mod_proxy_fcgi needs 'flushpackets' like in
+ * We can't control them in PHP
+ * We can control ending the response with \fastcgi_finish_request(), but that makes it a background process
*/
abstract class Stream
@@ -29,11 +34,6 @@ abstract class Stream
// Nginx: disable fastcgi_buffering and disable gzip for this request.
\header('X-Accel-Buffering: no');
- // Apache mod_fastcgi needs the -flush option
- // Apache mod_proxy_fcgi needs 'flushpackets' like in
- // We can't control them here
- // We can control ending the response with \fastcgi_finish_request()
-
if (!$binary) {
\header('Content-Type: text/plain');
}