tmp panic fix

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-10-13 15:02:32 +03:00
parent 9212ccb2ec
commit 3c26142d45

View File

@ -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