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 next
end end
line_split = line.split(':') var, val = line.split(':', 2)
next unless line_split.length > 1 next if val.nil?
var = line_split[0]
val = line_split[1, line_split.length - 1].join(":")
self.headers << [ var.to_s.strip, val.to_s.strip ] self.headers << [ var.to_s.strip, val.to_s.strip ]
prev = self.headers.length - 1 prev = self.headers.length - 1