diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-12 07:02:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-12 07:02:40 +0000 |
commit | 2c0a3f226a048570e76b27d997d3fd5342af5a59 (patch) | |
tree | 6407a0b649f3691fec821d6fb9fdfc807a652ff3 /lib/xmlrpc | |
parent | 6c62eafc7ce029f45ed44ff9bfdac10d6b338ff6 (diff) | |
download | ruby-2c0a3f226a048570e76b27d997d3fd5342af5a59.tar.gz |
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): requires
webrick/cookie. [ ruby-Bugs-21139 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/xmlrpc')
-rw-r--r-- | lib/xmlrpc/client.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/xmlrpc/client.rb b/lib/xmlrpc/client.rb index 7cf2ed87ac..278855e01d 100644 --- a/lib/xmlrpc/client.rb +++ b/lib/xmlrpc/client.rb @@ -567,6 +567,7 @@ module XMLRPC set_cookies = resp.get_fields("Set-Cookie") if set_cookies and !set_cookies.empty? + require 'webrick/cookie' @cookie = set_cookies.collect do |set_cookie| cookie = WEBrick::Cookie.parse_set_cookie(set_cookie) WEBrick::Cookie.new(cookie.name, cookie.value).to_s |