Cleanup docs

bug/bundler_fix
James Lee 2016-08-18 10:40:32 -05:00
parent bc9a402d9e
commit 91417e62a8
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 8 additions and 7 deletions

View File

@ -360,8 +360,9 @@ module Exploit::Remote::HttpClient
# Connects to the server, creates a request, sends the request,
# reads the response
#
# Passes +opts+ through directly to Rex::Proto::Http::Client#request_cgi.
# Passes `opts` through directly to {Rex::Proto::Http::Client#request_cgi}.
#
# @return (see Rex::Proto::Http::Client#send_recv))
def send_request_cgi(opts={}, timeout = 20)
if datastore['HttpClientTimeout'] && datastore['HttpClientTimeout'] > 0
actual_timeout = datastore['HttpClientTimeout']
@ -401,14 +402,14 @@ module Exploit::Remote::HttpClient
end
end
# Connects to the server, creates a request, sends the request, reads the
# response if a redirect (HTTP 30x response) is received it will attempt to
# follow the direct and retrieve that URI.
#
# Connects to the server, creates a request, sends the request, reads the response
# if a redirect (HTTP 30x response) is received it will attempt to follow the
# direct and retrieve that URI.
#
# @note The +opts+ will be updated to the updated location and +opts['redirect_uri']+
# will contain the full URI.
# @note `opts` will be updated to the updated location and
# `opts['redirect_uri']` will contain the full URI.
#
# @return (see #send_request_cgi)
def send_request_cgi!(opts={}, timeout = 20, redirect_depth = 1)
if datastore['HttpClientTimeout'] && datastore['HttpClientTimeout'] > 0
actual_timeout = datastore['HttpClientTimeout']