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