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:
parent
4c81c909b8
commit
88df8816f1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue