summaryrefslogtreecommitdiff
path: root/requests_cache/models
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-10-23 10:39:56 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-10-23 11:13:40 -0500
commitf43c0cb1f03b579f2620673ce80ee14c785dfd6f (patch)
tree40bf304496146dbf5d2abdb0fd9ca2546667c497 /requests_cache/models
parentc23c5e831374977ff99d0e5df87dab2688ddbbfd (diff)
downloadrequests-cache-f43c0cb1f03b579f2620673ce80ee14c785dfd6f.tar.gz
Move response content reset to DictStorage.__getitem__(), since that's the only place it's used
Diffstat (limited to 'requests_cache/models')
-rwxr-xr-xrequests_cache/models/response.py4
1 files changed, 0 insertions, 4 deletions
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"""