Skip to content

Commit

Permalink
fix: duplicate rule (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize authored Mar 12, 2024
2 parents f5fc2e2 + 42c3003 commit 51076dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/spy-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ export class SpyRule {
const method = rule.method?.toLowerCase() ?? undefined;
const path = rule.path?.toLowerCase() ?? undefined;
return [
// Add Upstream URL,
...(rule.upstreamUrl ? [rule.upstreamUrl] : []),
// Add the rule name,
...(rule.ruleName ? [rule.ruleName] : []),
// Add the plugin,
...(plugin ? [plugin] : []),
// Add the path,
Expand Down

0 comments on commit 51076dc

Please sign in to comment.