1
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:
Spencer McIntyre 2015-06-02 18:31:48 -04:00
parent fa9a222d97
commit 0313f0b0cf

View File

@ -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'