Skip to content

Commit

Permalink
Fix grpc user agent check
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Oct 22, 2021
1 parent fdb0a60 commit 6255fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/registry/static/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func userAgentIsAllowed(ua *ua.UserAgent, userAgents []string) bool {
return true
}
case "grpc":
if ua.Name == "grpc-go" {
if strings.HasPrefix(ua.Name, "grpc") {
return true
}
}
Expand Down

0 comments on commit 6255fbb

Please sign in to comment.