diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/soap/streamHandler.rb | 8 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Thu Dec 4 13:17:45 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org> + + * lib/soap/streamHandler.rb: support latest released version of + http-access2. + Thu Dec 4 13:04:44 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org> * lib/soap/soap.rb: add SOAP::Env module for environment repository diff --git a/lib/soap/streamHandler.rb b/lib/soap/streamHandler.rb index 7cf6ce53ee..d6b9c3bdca 100644 --- a/lib/soap/streamHandler.rb +++ b/lib/soap/streamHandler.rb @@ -115,9 +115,11 @@ private @options.add_hook("no_proxy") do |key, value| @client.no_proxy = value end - @client.protocol_version = @options["protocol_version"] - @options.add_hook("protocol_version") do |key, value| - @client.protocol_version = value + if @client.respond_to?(:protocol_version=) + @client.protocol_version = @options["protocol_version"] + @options.add_hook("protocol_version") do |key, value| + @client.protocol_version = value + end end set_cookie_store_file(@options["cookie_store_file"]) @options.add_hook("cookie_store_file") do |key, value| |