mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02: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:
|
# 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)
|
def HTTP.get(uri_or_host, path_or_headers = nil, port = nil)
|
||||||
get_response(uri_or_host, path_or_headers, port).body
|
get_response(uri_or_host, path_or_headers, port).body
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue