Code correctly handles colons in tag values now

This commit is contained in:
Rikaard Hosein 2016-09-20 14:54:03 -04:00
parent 6648c101dd
commit 9692e7e075
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ func (s *Statsd) parseStatsdLine(line string) error {
tagstr := segment[1:]
tags := strings.Split(tagstr, ",")
for _, tag := range tags {
ts := strings.Split(tag, ":")
ts := strings.SplitN(tag, ":", 2)
var k, v string
switch len(ts) {
case 1: