mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-09-04 20:18:27 +02:00
Check for a nil header value
This commit is contained in:
parent
fa9a222d97
commit
0313f0b0cf
@ -137,7 +137,7 @@ class Plugin::Requests < Msf::Plugin
|
||||
return [nil, opt_parser]
|
||||
when '-H'
|
||||
name, value = val.split(':', 2)
|
||||
options[:headers][name] = value.strip
|
||||
options[:headers][name] = value.to_s.strip
|
||||
when '-i'
|
||||
options[:print_headers] = true
|
||||
when '-I'
|
||||
|
Loading…
Reference in New Issue
Block a user