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:
Tobi Schäfer 2008-06-12 19:19:59 +00:00
parent 113596fa71
commit 7b36852d88

View file

@ -76,13 +76,9 @@ Api.prototype.getPermission = function(){
}
Api.prototype.main_action = function() {
if (req.isPost && req.getHeader("Content-type").startsWith("text/xml")) {
Api.prototype.main_action_xmlrpc.apply(this, arguments);
} else {
res.data.title = "Supported Application Programming Interfaces";
res.data.body = this.renderSkinAsString("$Api#main");
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;
}