Skip to content

Commit

Permalink
Merge pull request #1 from 3scale-labs/fix/ratelimit-header-name
Browse files Browse the repository at this point in the history
rate limit header names fixed
  • Loading branch information
NomadXD authored May 21, 2021
2 parents 07ba128 + 2c534a4 commit 0a01931
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions envoy-rate-limit-header/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ impl HttpContext for RateLimitFilter {
self.send_http_response(
429,
vec![
("RateLimit-Remaining", &cache.remaining.to_string()),
("RateLimit-Limit", &cache.limit.to_string()),
("RateLimit-Reset", &cache.reset),
("x-3scale-RateLimit-Remaining", &cache.remaining.to_string()),
("x-3scale-RateLimit-Limit", &cache.limit.to_string()),
("x-3scale-RateLimit-Reset", &cache.reset),
],
None,
);
Expand Down

0 comments on commit 0a01931

Please sign in to comment.