diff options
| author | jackyzha0 <[email protected]> | 2020-05-09 14:48:51 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-09 14:48:51 -0700 |
| commit | 8026f03b111d65ffbac7f11fc056abef430a77f8 (patch) | |
| tree | 49ee3cd9b69866e53068476dbbe8d27d6f386911 /api | |
| parent | ip changes and remove some debug (diff) | |
| download | ctrl-v-8026f03b111d65ffbac7f11fc056abef430a77f8.tar.xz ctrl-v-8026f03b111d65ffbac7f11fc056abef430a77f8.zip | |
add dockerfile and makefile
Diffstat (limited to 'api')
| -rw-r--r-- | api/routes.go | 2 |
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) |