Skip to content

A feature-rich command-line audio/video downloader

[rh:curl_cffi] Add actual `reason` to response (#16818)

Antony37a8c6f42b1e
diff --git a/yt_dlp/networking/_curlcffi.py b/yt_dlp/networking/_curlcffi.py
index 3e4302417b..1a34b269ff 100644
--- a/yt_dlp/networking/_curlcffi.py
+++ b/yt_dlp/networking/_curlcffi.py
@@ -92,7 +92,8 @@ class CurlCFFIResponseAdapter(Response):
fp=CurlCFFIResponseReader(response),
headers=response.headers,
url=response.url,
- status=response.status_code)
+ status=response.status_code,
+ reason=response.reason)
def read(self, amt=None):
try: