diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-04 04:19:12 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-04 04:19:12 +0000 |
commit | 541df88924aae308222d6af75afac754fdf57487 (patch) | |
tree | 1526b8997df75771fd8978302620555f4e01efcc | |
parent | 20fa0df5cd7f297b1694b75b776516b51460ba55 (diff) |
* lib/soap/streamHandler.rb: support latest released version of
http-access2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 <[email protected]> + + * lib/soap/streamHandler.rb: support latest released version of + http-access2. + Thu Dec 4 13:04:44 2003 NAKAMURA, Hiroshi <[email protected]> * 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| |