Skip to content
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

Closed
wants to merge 7 commits into from
Closed

Period header #3

wants to merge 7 commits into from

Conversation

eksoverzero
Copy link

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

@tobidelius
Copy link

Will this be merged?

@tobidelius
Copy link

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.
Copy link
Owner

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.

@jbyck
Copy link
Owner

jbyck commented Nov 6, 2014

@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.

Steven Eksteen added 2 commits November 12, 2014 21:28
Conflicts:
README.md
lib/rack/attack/rate-limit.rb
spec/rack/attack/rate-limit_spec.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants