From 2c534a43e6ef8c144801ead84e6f8bf06f4eaceb Mon Sep 17 00:00:00 2001 From: Lahiru Udayanga Date: Sat, 22 May 2021 02:14:10 +0530 Subject: [PATCH] rate limit header names fixed --- envoy-rate-limit-header/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/envoy-rate-limit-header/src/lib.rs b/envoy-rate-limit-header/src/lib.rs index be24561..6462ac3 100644 --- a/envoy-rate-limit-header/src/lib.rs +++ b/envoy-rate-limit-header/src/lib.rs @@ -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, );