From a54888b469a5b40710324b7054bce22b62c29577 Mon Sep 17 00:00:00 2001 From: jackdaw Date: Mon, 28 Nov 2016 15:08:17 +0900 Subject: [PATCH] . --- communicator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } }()