Merge pull request #3735 from anubhavp28/smallfix

[MRG+1] Changes a parameter name in class `DummyPolicy`
This commit is contained in:
Mikhail Korobov 2019-04-13 01:52:22 +05:00 committed by GitHub
commit 4b791274d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class DummyPolicy(object):
def should_cache_response(self, response, request):
return response.status not in self.ignore_http_codes
def is_cached_response_fresh(self, response, request):
def is_cached_response_fresh(self, cachedresponse, request):
return True
def is_cached_response_valid(self, cachedresponse, response, request):