Skip to content

Commit 0313f0b

Browse files
committed
Check for a nil header value
1 parent fa9a222 commit 0313f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def parse_args_http(args = [], type = 'http')
137137
return [nil, opt_parser]
138138
when '-H'
139139
name, value = val.split(':', 2)
140-
options[:headers][name] = value.strip
140+
options[:headers][name] = value.to_s.strip
141141
when '-i'
142142
options[:print_headers] = true
143143
when '-I'

0 commit comments

Comments
 (0)