From f43c0cb1f03b579f2620673ce80ee14c785dfd6f Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Sat, 23 Oct 2021 10:39:56 -0500 Subject: Move response content reset to DictStorage.__getitem__(), since that's the only place it's used --- requests_cache/models/response.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'requests_cache/models') diff --git a/requests_cache/models/response.py b/requests_cache/models/response.py index d7fa3df..70a3ec0 100755 --- a/requests_cache/models/response.py +++ b/requests_cache/models/response.py @@ -100,10 +100,6 @@ class CachedResponse(Response): self.expires = get_expiration_datetime(expire_after) return self.is_expired - def reset(self): - if self.raw: - self.raw.reset() - @property def size(self) -> int: """Get the size of the response body in bytes""" -- cgit v1.2.1