Loop until a non-100 is found or the resp parser fails
git-svn-id: file:///home/svn/framework3/trunk@7800 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
006d5d51fc
commit
1c98368351
|
@ -195,7 +195,7 @@ module Exploit::Remote::HttpClient
|
|||
c = connect(opts)
|
||||
r = c.request_raw(opts)
|
||||
resp = c.send_recv(r, opts[:timeout] ? opts[:timeout] : timeout)
|
||||
if(resp and resp.code == 100)
|
||||
while(resp and resp.code == 100)
|
||||
resp = c.reread_response(resp, opts[:timeout] ? opts[:timeout] : timeout)
|
||||
end
|
||||
resp
|
||||
|
@ -212,7 +212,7 @@ module Exploit::Remote::HttpClient
|
|||
c = connect(opts)
|
||||
r = c.request_cgi(opts)
|
||||
resp = c.send_recv(r, opts[:timeout] ? opts[:timeout] : timeout)
|
||||
if(resp and resp.code == 100)
|
||||
while(resp and resp.code == 100)
|
||||
resp = c.reread_response(resp, opts[:timeout] ? opts[:timeout] : timeout)
|
||||
end
|
||||
resp
|
||||
|
|
Loading…
Reference in New Issue