Skip to content

Commit

Permalink
Merge pull request #5 from perseidesjs/release-2-0-0
Browse files Browse the repository at this point in the history
fix: Convert rate limit headers to string format for consistency
  • Loading branch information
adevinwild authored Dec 19, 2024
2 parents 68b2478 + 693a9f1 commit 05e445f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/set-rate-limit-headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export function setRateLimitHeaders(
limit: number,
remaining: number,
) {
res.setHeader('X-RateLimit-Limit', limit)
res.setHeader('X-RateLimit-Remaining', remaining)
res.setHeader('X-RateLimit-Limit', String(limit))
res.setHeader('X-RateLimit-Remaining', String(remaining))
}

0 comments on commit 05e445f

Please sign in to comment.