mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Merge branch 'master' of https://github.com/treeder/router
This commit is contained in:
@@ -265,8 +265,8 @@ func getRoute(host string) (*Route, error) {
|
||||
rx2 := []byte(rx.(string))
|
||||
route := Route{}
|
||||
err = json.Unmarshal(rx2, &route)
|
||||
if err == nil {
|
||||
route = rx.(Route)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &route, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user