app/vmselect: follow-up after f0c06b428e

Remove extra error message when auth token is nil. The default message
about unsupported path should be more clear to the user who mistakenly
requested /multitenant path.

f0c06b428e
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2023-08-29 21:52:50 +02:00
parent f0c06b428e
commit bda9699657
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640

View file

@ -295,8 +295,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
if at == nil {
// the only option for at to be nil is when p.AuthToken == "multitenant"
// vmselect does not have multitenant endpoint, so request must be rejected
httpserver.Errorf(w, r, "auth error: tenantID must be specified explicitly in the request path")
return true
return false
}
switch p.Prefix {
case "select":