mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 08:55:35 +08:00
Fix an example committed to a wrong place [ci skip]
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user