-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Period header #3
Conversation
Will this be merged? |
bump |
@@ -46,8 +46,9 @@ Currently, Rack::Attack::RateLimit can only be configured to return rate limit h | |||
|
|||
Rate limit headers are: | |||
|
|||
* 'X-RateLimit-Limit' - The total number of requests allowed. | |||
* 'X-RateLimit-Remaining' - The number of remaining requests. | |||
* 'X-Rate-Limit-Limit' - The total number of requests allowed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for changing the header name? Merging this would require a major version bump.
@sandelius sorry for the late reply. @eksoverzero this needs to be rebased against master, as their were changes made since the PR was made that introduced merge conflicts. |
Conflicts: README.md lib/rack/attack/rate-limit.rb spec/rack/attack/rate-limit_spec.rb
Added X-Rate-Limit-Period headers.
This is in preparation for the changes in the 'reset_header' branch that addresses #2
I will pull request that only when I can figure out a proper test for it