Skip to content

Commit

Permalink
Add comment to explain URI encoding in getClusterKey method
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Nov 20, 2024
1 parent 6a361e5 commit 1e0f6ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Common/Server/Middleware/ClusterKeyAuthorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default class ClusterKeyAuthorization {
}

public static getClusterKey(): string {
// we encode uri component because a lot of people use special characters in their cluster key secret
return encodeURIComponent(ONEUPTIME_SECRET.toString());
}

Expand Down

0 comments on commit 1e0f6ff

Please sign in to comment.