fix nil error in HttpTrace
parent
835281c7cc
commit
f17140bdc3
|
@ -314,8 +314,12 @@ module Exploit::Remote::HttpClient
|
|||
print_line('#' * 20)
|
||||
print_line('# Response:')
|
||||
print_line('#' * 20)
|
||||
if res.nil?
|
||||
print_line("No response received")
|
||||
else
|
||||
print_line(res.to_terminal_output)
|
||||
end
|
||||
end
|
||||
|
||||
res
|
||||
rescue ::Errno::EPIPE, ::Timeout::Error => e
|
||||
|
@ -360,8 +364,12 @@ module Exploit::Remote::HttpClient
|
|||
print_line('#' * 20)
|
||||
print_line('# Response:')
|
||||
print_line('#' * 20)
|
||||
if res.nil?
|
||||
print_line("No response received")
|
||||
else
|
||||
print_line(res.to_terminal_output)
|
||||
end
|
||||
end
|
||||
disconnect(c) if disconnect
|
||||
res
|
||||
rescue ::Errno::EPIPE, ::Timeout::Error => e
|
||||
|
|
Loading…
Reference in New Issue