diff --git a/lib/msf/core/exploit/http/client.rb b/lib/msf/core/exploit/http/client.rb index 42fa9a8498..82c29adf66 100644 --- a/lib/msf/core/exploit/http/client.rb +++ b/lib/msf/core/exploit/http/client.rb @@ -247,11 +247,11 @@ module Exploit::Remote::HttpClient # # Passes +opts+ through directly to Rex::Proto::Http::Client#request_raw. # - def send_request_raw(opts={}, timeout = 20, getresponse = true) + def send_request_raw(opts={}, timeout = 20) begin c = connect(opts) r = c.request_raw(opts) - c.send_recv(r, opts[:timeout] ? opts[:timeout] : timeout) if getreponse == true + c.send_recv(r, opts[:timeout] ? opts[:timeout] : timeout) rescue ::Errno::EPIPE, ::Timeout::Error nil end @@ -262,11 +262,11 @@ module Exploit::Remote::HttpClient # # Passes +opts+ through directly to Rex::Proto::Http::Client#request_cgi. # - def send_request_cgi(opts={}, timeout = 20, getresponse = true) + def send_request_cgi(opts={}, timeout = 20) begin c = connect(opts) r = c.request_cgi(opts) - c.send_recv(r, opts[:timeout] ? opts[:timeout] : timeout) if getresponse == true + c.send_recv(r, opts[:timeout] ? opts[:timeout] : timeout) rescue ::Errno::EPIPE, ::Timeout::Error nil end