Skip to content

Commit

Permalink
Fixes path prefix in the querier. (#2178)
Browse files Browse the repository at this point in the history
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
cyriltovena authored Jun 4, 2020
1 parent bedab49 commit cb76da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/loghttp/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit cb76da6

Please sign in to comment.