mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Fix a typo on the binary help command
This commit is contained in:
parent
9c08f47bcb
commit
14f2c54dc8
1 changed files with 1 additions and 1 deletions
2
bin/httparty
Normal file → Executable file
2
bin/httparty
Normal file → Executable file
|
@ -38,7 +38,7 @@ OptionParser.new do |o|
|
|||
end
|
||||
end
|
||||
|
||||
o.on("-H", "--header [NAME=VALUE]", "Additional HTTP headers in NAME=VALUE form") do |h|
|
||||
o.on("-H", "--header [NAME:VALUE]", "Additional HTTP headers in NAME:VALUE form") do |h|
|
||||
abort "Invalid header specification, should be Name:Value" unless h =~ /.+:.+/
|
||||
name, value = h.split(':')
|
||||
opts[:headers][name.strip] = value.strip
|
||||
|
|
Loading…
Add table
Reference in a new issue