mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
Centralize Apache flush comment
This commit is contained in:
parent
76c41d5156
commit
010f38ea25
1 changed files with 5 additions and 5 deletions
|
|
@ -4,6 +4,11 @@ namespace SnappyMail\HTTP;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Can be used with JavaScript AbstractFetchRemote.streamPerLine(fCallback, sGetAdd, postData)
|
* 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 <Proxy "fcgi://...." flushpackets=on></Proxy>
|
||||||
|
* 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
|
abstract class Stream
|
||||||
|
|
@ -29,11 +34,6 @@ abstract class Stream
|
||||||
// Nginx: disable fastcgi_buffering and disable gzip for this request.
|
// Nginx: disable fastcgi_buffering and disable gzip for this request.
|
||||||
\header('X-Accel-Buffering: no');
|
\header('X-Accel-Buffering: no');
|
||||||
|
|
||||||
// Apache mod_fastcgi needs the -flush option
|
|
||||||
// Apache mod_proxy_fcgi needs 'flushpackets' like in <Proxy "fcgi://...." flushpackets=on></Proxy>
|
|
||||||
// We can't control them here
|
|
||||||
// We can control ending the response with \fastcgi_finish_request()
|
|
||||||
|
|
||||||
if (!$binary) {
|
if (!$binary) {
|
||||||
\header('Content-Type: text/plain');
|
\header('Content-Type: text/plain');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue