mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +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)
|
||||
*
|
||||
* 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
|
||||
|
|
@ -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 <Proxy "fcgi://...." flushpackets=on></Proxy>
|
||||
// We can't control them here
|
||||
// We can control ending the response with \fastcgi_finish_request()
|
||||
|
||||
if (!$binary) {
|
||||
\header('Content-Type: text/plain');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue