* lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Extract.
Sorry for forgetting it in r41236. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4e0685faea
commit
007fb3b160
@ -1,3 +1,7 @@
|
|||||||
|
Wed Jun 12 20:18:03 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
|
* lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Extract.
|
||||||
|
|
||||||
Wed Jun 12 18:19:41 2013 Tanaka Akira <akr@fsij.org>
|
Wed Jun 12 18:19:41 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* bignum.c (validate_integer_pack_format): supported_flags argument
|
* bignum.c (validate_integer_pack_format): supported_flags argument
|
||||||
@ -71,7 +75,6 @@ Wed Jun 12 06:35:01 2013 Tanaka Akira <akr@fsij.org>
|
|||||||
|
|
||||||
Wed Jun 12 00:07:46 2013 Kouhei Sutou <kou@cozmixng.org>
|
Wed Jun 12 00:07:46 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
* lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Extract.
|
|
||||||
* test/xmlrpc/test_client.rb (XMLRPC::ClientTest#test_cookie_simple):
|
* test/xmlrpc/test_client.rb (XMLRPC::ClientTest#test_cookie_simple):
|
||||||
Add a test for the extracted method.
|
Add a test for the extracted method.
|
||||||
|
|
||||||
|
@ -506,7 +506,12 @@ module XMLRPC # :nodoc:
|
|||||||
raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
|
raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
|
||||||
end
|
end
|
||||||
|
|
||||||
set_cookies = resp.get_fields("Set-Cookie")
|
parse_set_cookies(resp.get_fields("Set-Cookie"))
|
||||||
|
|
||||||
|
return data
|
||||||
|
end
|
||||||
|
|
||||||
|
def parse_set_cookies(set_cookies)
|
||||||
if set_cookies and !set_cookies.empty?
|
if set_cookies and !set_cookies.empty?
|
||||||
require 'webrick/cookie'
|
require 'webrick/cookie'
|
||||||
@cookie = set_cookies.collect do |set_cookie|
|
@cookie = set_cookies.collect do |set_cookie|
|
||||||
@ -514,8 +519,6 @@ module XMLRPC # :nodoc:
|
|||||||
WEBrick::Cookie.new(cookie.name, cookie.value).to_s
|
WEBrick::Cookie.new(cookie.name, cookie.value).to_s
|
||||||
end.join("; ")
|
end.join("; ")
|
||||||
end
|
end
|
||||||
|
|
||||||
return data
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def gen_multicall(methods=[], async=false)
|
def gen_multicall(methods=[], async=false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user