mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
app/vmselect: typo fixes in code comments
This commit is contained in:
parent
6680a17fec
commit
a257c5fe53
1 changed files with 3 additions and 0 deletions
|
@ -364,6 +364,9 @@ func selectHandler(qt *querytracer.Tracer, startTime time.Time, w http.ResponseW
|
|||
}
|
||||
|
||||
if p.Suffix == "prometheus/vmalert" {
|
||||
// vmalert access via incomplete url without `/` in the end. Redirect to complete url.
|
||||
// Use relative redirect, since the hostname and path prefix may be incorrect if VictoriaMetrics
|
||||
// is hidden behind vmauth or similar proxy.
|
||||
path := "../" + p.Suffix + "/"
|
||||
httpserver.Redirect(w, path)
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue