Disable request cache if response is streamed

This commit is contained in:
MoojMidge 2025-11-16 18:20:15 +11:00
parent cdbcf5b517
commit fb8bc43bd8

View file

@ -317,6 +317,8 @@ class BaseRequestsClass(object):
hooks=hooks,
))
if stream:
cache = False
if cache is not False:
if prepared_request:
method = prepared_request.method