From 22375f668b8c96f0e2bcb716553f9e091d6dcf80 Mon Sep 17 00:00:00 2001 From: Tiou Lims Date: Wed, 24 Apr 2024 00:30:08 +0800 Subject: [PATCH] fix: add missing parameters from session request (#298) --- curl_cffi/requests/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/curl_cffi/requests/__init__.py b/curl_cffi/requests/__init__.py index 1ea5a6df..0421be69 100644 --- a/curl_cffi/requests/__init__.py +++ b/curl_cffi/requests/__init__.py @@ -63,8 +63,10 @@ def request( http_version: Optional[CurlHttpVersion] = None, debug: bool = False, interface: Optional[str] = None, - multipart: Optional[CurlMime] = None, cert: Optional[Union[str, Tuple[str, str]]] = None, + stream: bool = False, + max_recv_speed: int = 0, + multipart: Optional[CurlMime] = None, ) -> Response: """Send an http request. @@ -132,8 +134,10 @@ def request( default_encoding=default_encoding, http_version=http_version, interface=interface, - multipart=multipart, cert=cert, + stream=stream, + max_recv_speed=max_recv_speed, + multipart=multipart, )