change default not tot create useless object
initheader = initheader ? initheader.dup : {} git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4c81c909b8
commit
88df8816f1
@ -1123,7 +1123,7 @@ module Net #:nodoc:
|
|||||||
# end
|
# end
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
def get(path, initheader = {}, dest = nil, &block) # :yield: +body_segment+
|
def get(path, initheader = nil, dest = nil, &block) # :yield: +body_segment+
|
||||||
res = nil
|
res = nil
|
||||||
request(Get.new(path, initheader)) {|r|
|
request(Get.new(path, initheader)) {|r|
|
||||||
r.read_body dest, &block
|
r.read_body dest, &block
|
||||||
|
Loading…
x
Reference in New Issue
Block a user