summaryrefslogtreecommitdiffstats
path: root/Bugzilla/CGI.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-06-05 16:28:12 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-06-05 16:28:12 +0200
commit24bac6ba586e86dfd88da50a00a8c3d6040626bc (patch)
tree8404218f346e845a51e8d8038952862a27265a74 /Bugzilla/CGI.pm
parent564e1b0a6e996ac64c370a2a320e98c68edef10a (diff)
downloadbugzilla-24bac6ba586e86dfd88da50a00a8c3d6040626bc.tar.gz
bugzilla-24bac6ba586e86dfd88da50a00a8c3d6040626bc.tar.xz
Bug 761331: Remove our customized multipart_init() method
r=glob a=LpSolit
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r--Bugzilla/CGI.pm29
1 files changed, 0 insertions, 29 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index fc29008c3..879eca9b2 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -221,35 +221,6 @@ sub check_etag {
}
}
-# Overwrite to ensure nph doesn't get set, and unset HEADERS_ONCE
-sub multipart_init {
- my $self = shift;
-
- # Keys are case-insensitive, map to lowercase
- my %args = @_;
- my %param;
- foreach my $key (keys %args) {
- $param{lc $key} = $args{$key};
- }
-
- # Set the MIME boundary and content-type
- my $boundary = $param{'-boundary'}
- || '------- =_' . generate_random_password(16);
- delete $param{'-boundary'};
- $self->{'separator'} = "\r\n--$boundary\r\n";
- $self->{'final_separator'} = "\r\n--$boundary--\r\n";
- $param{'-type'} = SERVER_PUSH($boundary);
-
- # Note: CGI.pm::multipart_init up to v3.04 explicitly set nph to 0
- # CGI.pm::multipart_init v3.05 explicitly sets nph to 1
- # CGI.pm's header() sets nph according to a param or $CGI::NPH, which
- # is the desired behaviour.
-
- return $self->header(
- %param,
- ) . "WARNING: YOUR BROWSER DOESN'T SUPPORT THIS SERVER-PUSH TECHNOLOGY." . $self->multipart_end;
-}
-
# Have to add the cookies in.
sub multipart_start {
my $self = shift;