Add @jlee-r7's feedback

bug/bundler_fix
jvazquez-r7 2014-08-20 12:04:33 -05:00
parent 9dcc95fb04
commit 9d007a8c63
1 changed files with 2 additions and 5 deletions

View File

@ -25,11 +25,8 @@ class Header
next
end
line_split = line.split(':')
next unless line_split.length > 1
var = line_split[0]
val = line_split[1, line_split.length - 1].join(":")
var, val = line.split(':', 2)
next if val.nil?
self.headers << [ var.to_s.strip, val.to_s.strip ]
prev = self.headers.length - 1