mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
typo fix
This commit is contained in:
parent
85a95bf60c
commit
acf2a82d3c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ func WriteDatabaseNames(w http.ResponseWriter) {
|
|||
}
|
||||
dbs := make([]string, len(dbNames))
|
||||
for i := range dbNames {
|
||||
dbs[i] = fmt.Sprintf(`"[%s]"`, dbNames[i])
|
||||
dbs[i] = fmt.Sprintf(`[%q]`, dbNames[i])
|
||||
}
|
||||
fmt.Fprintf(w, `{"results":[{"name":"databases","columns":["name"],"series":[{"values":[%s]}]}]}`, strings.Join(dbs, ","))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue