Skip to content

Commit

Permalink
Allow service and method in grpc routing rules to be empty. (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanpf authored Oct 25, 2023
1 parent 4be0b41 commit 7910067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pjs/http/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
grpc = (path || '').split('/'),
) => (
path?.startsWith('/grpc.reflection.') || (
(rule?.Method?.Service === grpc[1]) && (rule?.Method?.Method === grpc[2])
(!rule?.Method?.Service || rule?.Method?.Service === grpc[1]) && (!rule?.Method?.Method || rule?.Method?.Method === grpc[2])
)
)
)()
Expand Down

0 comments on commit 7910067

Please sign in to comment.