Add @jlee-r7's feedback
parent
9dcc95fb04
commit
9d007a8c63
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue