Browse Source

eliminate superfluous response.WriteHeader call

Matthew R. Kasun 3 years ago
parent
commit
33746a7bf6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/node.go

+ 1 - 0
controllers/node.go

@@ -226,6 +226,7 @@ func authorize(nodesAllowed, networkCheck bool, authNetwork string, next http.Ha
 				// TODO --- should ensure that node is only operating on itself
 				if _, _, _, err := logic.VerifyToken(authToken); err == nil {
 					next.ServeHTTP(w, r)
+					return
 				}
 			}