From 7b8c2dae855d3d7d1a9ada808e26d43fff04a6b4 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Thu, 25 Aug 2016 05:25:20 -0700 Subject: [PATCH] http auth fixes #36 --- controller/controller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controller/controller.go b/controller/controller.go index 7902e6f0..f60602fe 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -311,12 +311,13 @@ func (c *Controller) handleInputCommand(conn *server.Conn, msg *server.Message, return writeErr(errors.New("invalid password")) } conn.Authenticated = true - return writeOutput(server.OKMessage(msg, start)) + if msg.ConnType != server.HTTP { + return writeOutput(server.OKMessage(msg, start)) + } } else if msg.Command == "auth" { return writeErr(errors.New("invalid password")) } } - // choose the locking strategy switch msg.Command { default: