mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Use
guard style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4b5267018a
commit
102e2cd563
2 changed files with 12 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 13 22:35:50 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Use
|
||||
guard style.
|
||||
|
||||
Thu Jun 13 22:12:32 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/fileutils.rb (FileUtils#rmdir): fix traversal loop, not trying
|
||||
|
|
|
@ -512,13 +512,13 @@ module XMLRPC # :nodoc:
|
|||
end
|
||||
|
||||
def parse_set_cookies(set_cookies)
|
||||
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
|
||||
end.join("; ")
|
||||
end
|
||||
return if set_cookies.nil?
|
||||
return if 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
|
||||
end.join("; ")
|
||||
end
|
||||
|
||||
def gen_multicall(methods=[], async=false)
|
||||
|
|
Loading…
Reference in a new issue