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
f7de8960
Commit
f7de8960
authored
9 years ago
by
Pat Thoyts
Committed by
Frédéric Buclin
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 708252: The XMLRPC API doesn't work with IIS
r=LpSolit a=dkl
parent
55e005ae
master
dev
release-5.0-stable
version-5.2
release-5.0.6-etersoft
release-5.0.5-etersoft
release-5.0.4-etersoft
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
XMLRPC.pm
Bugzilla/WebService/Server/XMLRPC.pm
+8
-0
No files found.
Bugzilla/WebService/Server/XMLRPC.pm
View file @
f7de8960
...
...
@@ -63,6 +63,12 @@ sub make_response {
my
$self
=
shift
;
my
$cgi
=
Bugzilla
->
cgi
;
# Fix various problems with IIS.
if
(
$ENV
{
'SERVER_SOFTWARE'
}
=~
/IIS/
)
{
$ENV
{
CONTENT_LENGTH
}
=
0
;
binmode
(
STDOUT
,
':bytes'
);
}
$self
->
SUPER::
make_response
(
@_
);
# XMLRPC::Transport::HTTP::CGI doesn't know about Bugzilla carrying around
...
...
@@ -107,6 +113,8 @@ sub handle_login {
if
(
none
{
$_
eq
$method
}
$class
->
PUBLIC_METHODS
)
{
ThrowCodeError
(
'unknown_method'
,
{
method
=>
$full_method
});
}
$ENV
{
CONTENT_LENGTH
}
=
0
if
$ENV
{
'SERVER_SOFTWARE'
}
=~
/IIS/
;
$self
->
SUPER::
handle_login
(
$class
,
$method
,
$full_method
);
return
;
}
...
...
This diff is collapsed.
Click to expand it.
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