Fix an example committed to a wrong place [ci skip]

This commit is contained in:
Takashi Kokubun 2020-03-10 22:36:48 -07:00
parent de4999ef23
commit da6948753e
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -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