From 0e81595469d7e37cb1b2587caeba89f1be4fb9ae Mon Sep 17 00:00:00 2001 From: orcas Date: Sat, 27 Jul 2019 14:13:08 +0800 Subject: [PATCH] fixed syntax error --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4226b88..f7cd783 100644 --- a/main.go +++ b/main.go @@ -87,7 +87,7 @@ func AuthMiddleware(next httprouter.Handle) httprouter.Handle { return } - if client.UserId == "" || ClientId == "" { + if client.UserId == "" || client.ClientId == "" { http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest) return }