Fixes path prefix in the querier. (#2178)

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
This commit is contained in:
Cyril Tovena
2020-06-04 17:13:03 -04:00
committed by GitHub
parent bedab491ac
commit cb76da6c1d

View File

@@ -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
}