lib/rex/mime/header.rb in rex-2.0.3 vs lib/rex/mime/header.rb in rex-2.0.4
- old
+ new
@@ -23,11 +23,12 @@
next if not self.headers[prev]
self.headers[prev][1] << line.strip
next
end
- var,val = line.split(':')
- next if not val
+ var, val = line.split(':', 2)
+ next if val.nil?
+
self.headers << [ var.to_s.strip, val.to_s.strip ]
prev = self.headers.length - 1
end
end