From 1b1a2af755b33a80278442ac597be7a84bee3a51 Mon Sep 17 00:00:00 2001 From: princ0301 Date: Mon, 25 May 2026 01:50:06 +0530 Subject: [PATCH] fix: HTTPResponse object has no attribute 'chunked' (#137) --- cachecontrol/adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(