Closed this issue a year ago · 2 comments
https://github.com/ionrock/cachecontrol/blob/81ef6ba27d3c2c81298a3fbad54bc3a8e44c22fe/cachecontrol/caches/file_cache.py#L156-L161
should be some sort of context manager, I would think.
Since the fp is passed to construct a urllib3.HTTPResponse and it will be closed by the response.
urllib3.HTTPResponse
Can you give an example where the body isn't closed?
ah, you're probably right