mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix an example committed to a wrong place [ci skip]
This commit is contained in:
parent
de4999ef23
commit
da6948753e
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ module Net #:nodoc:
|
|||
#
|
||||
# you can also specify request headers:
|
||||
#
|
||||
# Net::HTTP.get_response(URI('http://www.example.com/index.html'), { 'Accept' => 'text/html' })
|
||||
# Net::HTTP.get(URI('http://www.example.com/index.html'), { 'Accept' => 'text/html' })
|
||||
#
|
||||
def HTTP.get(uri_or_host, path_or_headers = nil, port = nil)
|
||||
get_response(uri_or_host, path_or_headers, port).body
|
||||
|
|
Loading…
Add table
Reference in a new issue