Class: XMLRPC::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/dydra/patches/xmlrpc.rb

Overview

Patches for Ruby's built-in XML-RPC client.

See Also:

Instance Method Summary (collapse)

Instance Method Details

- (Object) do_rpc(request, async = false)

This patch is a workaround for a REXML bug in Ruby 1.9.2.



12
13
14
15
16
# File 'lib/dydra/patches/xmlrpc.rb', line 12

def do_rpc(request, async = false)
  data = do_rpc_broken(request, async)
  data.force_encoding(Encoding::UTF_8) if data.respond_to?(:force_encoding)
  data
end

- (Object) do_rpc_broken



6
# File 'lib/dydra/patches/xmlrpc.rb', line 6

alias_method :do_rpc_broken, :do_rpc