aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-09 14:48:51 -0700
committerjackyzha0 <[email protected]>2020-05-09 14:48:51 -0700
commit8026f03b111d65ffbac7f11fc056abef430a77f8 (patch)
tree49ee3cd9b69866e53068476dbbe8d27d6f386911 /api
parentip changes and remove some debug (diff)
downloadctrl-v-8026f03b111d65ffbac7f11fc056abef430a77f8.tar.xz
ctrl-v-8026f03b111d65ffbac7f11fc056abef430a77f8.zip
add dockerfile and makefile
Diffstat (limited to 'api')
-rw-r--r--api/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/routes.go b/api/routes.go
index 6f9c17b..103de04 100644
--- a/api/routes.go
+++ b/api/routes.go
@@ -19,7 +19,7 @@ func insertFunc(w http.ResponseWriter, r *http.Request) {
content := r.FormValue("content")
// get ip
- ip, _ := getIP(r)
+ ip := getIP(r)
log.Infof("got content '%s' and ip '%s'", content, ip)