1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
naruse 2014-07-03 17:59:49 +00:00
parent 4c81c909b8
commit 88df8816f1

View file

@ -1123,7 +1123,7 @@ module Net #:nodoc:
# end
# }
#
def get(path, initheader = {}, dest = nil, &block) # :yield: +body_segment+
def get(path, initheader = nil, dest = nil, &block) # :yield: +body_segment+
res = nil
request(Get.new(path, initheader)) {|r|
r.read_body dest, &block