Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
24bac6ba
Commit
24bac6ba
authored
Jun 05, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 761331: Remove our customized multipart_init() method
r=glob a=LpSolit
parent
564e1b0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
CGI.pm
Bugzilla/CGI.pm
+0
-29
No files found.
Bugzilla/CGI.pm
View file @
24bac6ba
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment