From cfa56dde8214ce7e52ec72a73d0ba09d95a661fd Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Thu, 30 Oct 2014 22:00:40 -0700 Subject: [PATCH] commands/http: Error if trying to run private command --- commands/http/parse.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/http/parse.go b/commands/http/parse.go index 2234c9165..d14306c41 100644 --- a/commands/http/parse.go +++ b/commands/http/parse.go @@ -31,6 +31,10 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) { cmd = sub } + if cmd.Private { + return nil, ErrNotFound + } + opts, args2 := parseOptions(r) args = append(args, args2...)