From 5fc0ba89c628d3f8fd277ebd227b364192383c72 Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Mon, 11 Jun 2018 12:08:43 +0800 Subject: [PATCH] Fix response --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index db2970e..9c153de 100644 --- a/main.go +++ b/main.go @@ -320,7 +320,7 @@ func (h handler) handlePull(w http.ResponseWriter, r *http.Request) { return } - response.OK(w, "Pulled %d", len(invites)) + response.OK(w, fmt.Sprintf("Pulled %d", len(invites))) } @@ -350,7 +350,7 @@ func (h handler) handlePush(w http.ResponseWriter, r *http.Request) { return } - response.OK(w, "Pushed %d", len(invites)) + response.OK(w, fmt.Sprintf("Pushed %d", len(invites))) }