Fixing Helma bug #628 fails because it also chomps the XML-RPC method any potential work-around is impossible without
This commit is contained in:
parent
113596fa71
commit
7b36852d88
1 changed files with 3 additions and 7 deletions
|
@ -76,13 +76,9 @@ Api.prototype.getPermission = function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Api.prototype.main_action = function() {
|
Api.prototype.main_action = function() {
|
||||||
if (req.isPost && req.getHeader("Content-type").startsWith("text/xml")) {
|
res.data.title = "Supported Application Programming Interfaces";
|
||||||
Api.prototype.main_action_xmlrpc.apply(this, arguments);
|
res.data.body = this.renderSkinAsString("$Api#main");
|
||||||
} else {
|
res.handlers.site.renderSkin("Site#page");
|
||||||
res.data.title = "Supported Application Programming Interfaces";
|
|
||||||
res.data.body = this.renderSkinAsString("$Api#main");
|
|
||||||
res.handlers.site.renderSkin("Site#page");
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue