Skip to content

Commit 4480e01

Browse files
committed
fix: reverted the compact change in ratelimiteheaders
1 parent 42febaf commit 4480e01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎middleware/base_rate_limiter.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def initialize(suffix)
8484
def to_hash
8585
return {} if [@limit, @reset, @remaining].all?(&:nil?)
8686

87-
{ "#{@prefix}-Limit#{@suffix}" => @limit, "#{@prefix}-Reset#{@suffix}" => @reset, "#{@prefix}-Remaining#{@suffix}" => @remaining }.compact
87+
{ "#{@prefix}-Limit#{@suffix}" => @limit, "#{@prefix}-Reset#{@suffix}" => @reset, "#{@prefix}-Remaining#{@suffix}" => @remaining }
8888
end
8989
end
9090

0 commit comments

Comments
 (0)