.
This commit is contained in:
parent
0105801710
commit
a54888b469
|
@ -5,6 +5,7 @@ import (
|
|||
"encoding/json"
|
||||
"loafle.com/commons/communicate/events"
|
||||
"net/http"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
type communicator struct {
|
||||
|
@ -27,7 +28,7 @@ func (c *communicator) start() {
|
|||
m := event.Data.(events.URLMaker)
|
||||
data, _ := json.Marshal(event)
|
||||
r, _ := http.Post(GetRootURL()+m.GetUrl(), "application/json", bytes.NewBuffer(data))
|
||||
e.Result <- events.Result{Message: r.StatusCode}
|
||||
e.Result <- events.Result{Message: strconv.Itoa(r.StatusCode)}
|
||||
}(e)
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue
Block a user