Fixing tests

This commit is contained in:
Denis Makogon
2017-09-22 01:23:14 +03:00
parent c39bf31425
commit edd0c8453c
2 changed files with 2 additions and 4 deletions

View File

@@ -363,7 +363,7 @@ func Test(t *testing.T, ds models.Datastore) {
"THIRD": "3", "THIRD": "3",
}, },
Headers: http.Header{ Headers: http.Header{
"First": []string{"test", "test2"}, "First": []string{"test2"},
"Third": []string{"test", "test2"}, "Third": []string{"test", "test2"},
}, },
} }

View File

@@ -150,9 +150,7 @@ func (r *Route) Update(new *Route) {
if len(v) == 0 { if len(v) == 0 {
r.Headers.Del(k) r.Headers.Del(k)
} else { } else {
for _, val := range v { r.Headers[k] = v
r.Headers.Set(k, val)
}
} }
} }
} }