Skip to content

Commit 91417e6

Browse files
committed
Cleanup docs
1 parent bc9a402 commit 91417e6

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lib/msf/core/exploit/http/client.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,9 @@ def send_request_raw(opts={}, timeout = 20)
360360
# Connects to the server, creates a request, sends the request,
361361
# reads the response
362362
#
363-
# Passes +opts+ through directly to Rex::Proto::Http::Client#request_cgi.
363+
# Passes `opts` through directly to {Rex::Proto::Http::Client#request_cgi}.
364364
#
365+
# @return (see Rex::Proto::Http::Client#send_recv))
365366
def send_request_cgi(opts={}, timeout = 20)
366367
if datastore['HttpClientTimeout'] && datastore['HttpClientTimeout'] > 0
367368
actual_timeout = datastore['HttpClientTimeout']
@@ -401,14 +402,14 @@ def send_request_cgi(opts={}, timeout = 20)
401402
end
402403
end
403404

405+
# Connects to the server, creates a request, sends the request, reads the
406+
# response if a redirect (HTTP 30x response) is received it will attempt to
407+
# follow the direct and retrieve that URI.
404408
#
405-
# Connects to the server, creates a request, sends the request, reads the response
406-
# if a redirect (HTTP 30x response) is received it will attempt to follow the
407-
# direct and retrieve that URI.
408-
#
409-
# @note The +opts+ will be updated to the updated location and +opts['redirect_uri']+
410-
# will contain the full URI.
409+
# @note `opts` will be updated to the updated location and
410+
# `opts['redirect_uri']` will contain the full URI.
411411
#
412+
# @return (see #send_request_cgi)
412413
def send_request_cgi!(opts={}, timeout = 20, redirect_depth = 1)
413414
if datastore['HttpClientTimeout'] && datastore['HttpClientTimeout'] > 0
414415
actual_timeout = datastore['HttpClientTimeout']

0 commit comments

Comments
 (0)