Dashes have never actually been valid in XML-RPC method names, and some
clients (like newer versions of Perl's RPC::XML) enforce this rule on
their clients. This way we give XML-RPC clients a way they can still reach
our methods.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
sub run_request {
my( $service, $method, @args ) = @_;
+ $method =~ s/__/-/g; # Our methods have dashes in them, but that's not
+ # actually a valid character in XML-RPC method
+ # names, and some clients enforce that restriction
+ # on their users.
+
# since multiple Perl clients run within mod_perl,
# we must set our ingress before each request.
OpenSRF::AppSession->ingress('xmlrpc');