浏览代码

eliminate superfluous response.WriteHeader call

Matthew R. Kasun 3 年之前
父节点
当前提交
33746a7bf6
共有 1 个文件被更改,包括 1 次插入0 次删除
  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
 				}
 			}