mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
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:
parent
f0c06b428e
commit
bda9699657
1 changed files with 1 additions and 2 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue