summaryrefslogtreecommitdiffstats
path: root/Bugzilla/CGI.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-07-21 18:07:00 +0200
committerByron Jones <glob@mozilla.com>2014-07-21 18:07:00 +0200
commitb1f98ae140d188d7801ae7a268e91365e6155cb4 (patch)
treed56d3542f4a87eb1c0b621254197d773df682e74 /Bugzilla/CGI.pm
parent7bd3b9d8bfaade262564d39e16e8e39a5690d86b (diff)
downloadbugzilla-b1f98ae140d188d7801ae7a268e91365e6155cb4.tar.gz
bugzilla-b1f98ae140d188d7801ae7a268e91365e6155cb4.tar.xz
Bug 1041559: "Please wait while your bugs are retrieved" shown above menu header for search error pages
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r--Bugzilla/CGI.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index 0adb46a62..a12fb284b 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -310,9 +310,24 @@ sub multipart_start {
$headers .= "Set-Cookie: ${cookie}${CGI::CRLF}";
}
$headers .= $CGI::CRLF;
+ $self->{_multipart_in_progress} = 1;
return $headers;
}
+sub close_standby_message {
+ my ($self, $contenttype, $disposition) = @_;
+
+ if ($self->{_multipart_in_progress}) {
+ print $self->multipart_end();
+ print $self->multipart_start(-type => $contenttype,
+ -content_disposition => $disposition);
+ }
+ else {
+ print $self->header(-type => $contenttype,
+ -content_disposition => $disposition);
+ }
+}
+
# Override header so we can add the cookies in
sub header {
my $self = shift;