summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-07-12 15:05:07 +0200
committermkanat%bugzilla.org <>2006-07-12 15:05:07 +0200
commit8b6eecc5d9fe028933e51cfebaa62ed72eb073ce (patch)
tree6d5538146ed8971821b3b194a5ac01ad6d2f5ebf /buglist.cgi
parentdbb4dc8e4e689253f0e9c5d162f342e8e652c456 (diff)
downloadbugzilla-8b6eecc5d9fe028933e51cfebaa62ed72eb073ce.tar.gz
bugzilla-8b6eecc5d9fe028933e51cfebaa62ed72eb073ce.tar.xz
Bug 342757: searching results in "YOUR BROWSER DOESN'T SUPPORT THIS SERVER-PUSH TECHNOLOGY" warning on brower under mod_perl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=justdave
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 1a7ffc316..1400968fc 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -884,6 +884,12 @@ if ($serverpush) {
$template->process("list/server-push.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
+ # Under mod_perl, flush stdout so that the page actually shows up.
+ if ($ENV{MOD_PERL}) {
+ require Apache2::RequestUtil;
+ Apache2::RequestUtil->request->rflush();
+ }
+
# Don't do multipart_end() until we're ready to display the replacement
# page, otherwise any errors that happen before then (like SQL errors)
# will result in a blank page being shown to the user instead of the error.