mirror of
https://github.com/grafana/loki.git
synced 2026-03-13 09:33:58 +08:00
Fixes path prefix in the querier. (#2178)
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@ const (
|
||||
|
||||
// GetVersion returns the loghttp version for a given path.
|
||||
func GetVersion(uri string) Version {
|
||||
if strings.HasPrefix(strings.ToLower(uri), "/loki/api/v1") {
|
||||
if strings.Contains(strings.ToLower(uri), "/loki/api/v1") {
|
||||
return VersionV1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user