diff --git a/cachecontrol/adapter.py b/cachecontrol/adapter.py index 4f4c185..6c3f694 100644 --- a/cachecontrol/adapter.py +++ b/cachecontrol/adapter.py @@ -131,7 +131,7 @@ def build_response( # type: ignore[override] self.controller.cache_response, request, weakref.ref(response) ), ) - if response.chunked: + if getattr(response, "chunked", False): super_update_chunk_length = response.__class__._update_chunk_length def _update_chunk_length(