Fix up Net::HTTP usage so that it works with newer ruby as well

unstable
HD Moore 2012-04-23 03:53:50 -05:00
parent a1f9d2c27a
commit efc589c1e2
1 changed files with 2 additions and 2 deletions

View File

@ -663,8 +663,8 @@ class Connection
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE # XXX: security issue
headers = {'Cookie' => "nexposeCCSessionID=#{@session_id}"}
resp, data = http.get(uri.path, headers)
data
resp = http.get(uri.path, headers)
resp ? resp.body : nil
end
end