diff --git a/communicator.go b/communicator.go index 477b1fb..676ace0 100644 --- a/communicator.go +++ b/communicator.go @@ -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) } }()