tmp panic fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
9212ccb2ec
commit
3c26142d45
3
http.go
3
http.go
@ -141,6 +141,9 @@ func (h *httpServer) Register() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if len(service.Metadata) == 0 {
|
||||
service.Metadata = make(map[string]string, 5)
|
||||
}
|
||||
service.Metadata["protocol"] = "http"
|
||||
service.Endpoints = eps
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user