From e781b36dbb82173a8022184f9400b48cfe52078a Mon Sep 17 00:00:00 2001 From: nahi Date: Thu, 4 Dec 2003 04:19:12 +0000 Subject: * lib/soap/streamHandler.rb: support latest released version of http-access2. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/soap/streamHandler.rb | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e57888f2b..4c946f267 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 4 13:17:45 2003 NAKAMURA, Hiroshi + + * lib/soap/streamHandler.rb: support latest released version of + http-access2. + Thu Dec 4 13:04:44 2003 NAKAMURA, Hiroshi * lib/soap/soap.rb: add SOAP::Env module for environment repository diff --git a/lib/soap/streamHandler.rb b/lib/soap/streamHandler.rb index 7cf6ce53e..d6b9c3bdc 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| -- cgit