mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Merge b3e8e85e78
into 836e49b535
This commit is contained in:
commit
5a6f362f64
|
@ -119,6 +119,9 @@ class SimpleRateThrottle(BaseThrottle):
|
|||
if self.rate is None:
|
||||
return True
|
||||
|
||||
if request.method == 'OPTIONS':
|
||||
return True
|
||||
|
||||
self.key = self.get_cache_key(request, view)
|
||||
if self.key is None:
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue
Block a user