mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixing tests
This commit is contained in:
@@ -363,7 +363,7 @@ func Test(t *testing.T, ds models.Datastore) {
|
||||
"THIRD": "3",
|
||||
},
|
||||
Headers: http.Header{
|
||||
"First": []string{"test", "test2"},
|
||||
"First": []string{"test2"},
|
||||
"Third": []string{"test", "test2"},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -150,9 +150,7 @@ func (r *Route) Update(new *Route) {
|
||||
if len(v) == 0 {
|
||||
r.Headers.Del(k)
|
||||
} else {
|
||||
for _, val := range v {
|
||||
r.Headers.Set(k, val)
|
||||
}
|
||||
r.Headers[k] = v
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user