Permalink
Browse files

Revert API change

  • Loading branch information...
1 parent b298597 commit 37d6af7633f1e38ad90113108b8f9bde9ee1dd02 @FireFart FireFart committed May 15, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/msf/core/exploit/http/client.rb
@@ -247,11 +247,11 @@ def cleanup
#
# 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 @@ def send_request_raw(opts={}, timeout = 20, getresponse = true)
#
# 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

0 comments on commit 37d6af7

Please sign in to comment.