Skip to content
Browse files

Improved wording.

  • Loading branch information...
1 parent 98d039a commit 06e71d1e13544b753deddeafd9941119a3be861f @bendiken bendiken committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -62,7 +62,7 @@ keyed to unique HTTP clients.
By default, HTTP clients are uniquely identified by their IP address as
returned by `Rack::Request#ip`. If you wish to instead use a more granular,
application-specific identifier such as a session key or a user account
-name, just subclass `Rack::Throttle::Interval` and override the
+name, you need only subclass `Rack::Throttle::Interval` and override the
`#client_identifier` method.
HTTP Response Codes and Headers
@@ -91,7 +91,7 @@ An HTTP 503 response would be correct in situations where the server was
genuinely overloaded and couldn't handle more requests, but for rate
limiting an HTTP 403 response is more appropriate. Nonetheless, if you think
otherwise, `Rack::Throttle` does allow you to override the returned HTTP
-status code by passing in the `:code => 503` option when constructing a
+status code by passing in a `:code => 503` option when constructing a
`Rack::Throttle::Limiter` instance.
Documentation

0 comments on commit 06e71d1

Please sign in to comment.
Something went wrong with that request. Please try again.