diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-03 17:59:49 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-03 17:59:49 +0000 |
commit | 88df8816f19ee046314af3c95cc32b0ef75f595a (patch) | |
tree | e978a54ae948b8a927cf32647481e75b3b86c650 /lib/net/http.rb | |
parent | 4c81c909b86d4619e17ce387ba1ba1b3b3a0b6d4 (diff) | |
download | ruby-88df8816f19ee046314af3c95cc32b0ef75f595a.tar.gz |
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
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 6d6a24fb86..efa7313b40 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -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 |