nil exception 수정
This commit is contained in:
@ -704,6 +704,10 @@ type HttpApiHandlerContainer struct {
|
||||
}
|
||||
|
||||
func (hc *HttpApiHandlerContainer) RegistReceiver(receiver HttpApiReceiver) {
|
||||
if hc.methods == nil {
|
||||
hc.methods = make(map[string]apiFuncType)
|
||||
}
|
||||
|
||||
for k, v := range receiver.methods {
|
||||
logger.Println("http api registered :", k)
|
||||
hc.methods[k] = v
|
||||
|
||||
Reference in New Issue
Block a user