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

Authored by: antorlovsky
This commit is contained in:
Antony 2026-06-09 18:20:30 +03:00 committed by GitHub
parent 83564f85db
commit 37a8c6f42b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,8 @@ class CurlCFFIResponseAdapter(Response):
fp=CurlCFFIResponseReader(response), fp=CurlCFFIResponseReader(response),
headers=response.headers, headers=response.headers,
url=response.url, url=response.url,
status=response.status_code) status=response.status_code,
reason=response.reason)
def read(self, amt=None): def read(self, amt=None):
try: try: