From c0d912d16ab12ab35cf01045a712f050d1b2dd49 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Thu, 30 Jan 2025 19:53:13 +0200 Subject: [PATCH] fix(asyncFetcher): A typo made async version of put do post request instead Awkward moment --- scrapling/fetchers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapling/fetchers.py b/scrapling/fetchers.py index ef7a1b6..eb8d1ad 100644 --- a/scrapling/fetchers.py +++ b/scrapling/fetchers.py @@ -143,7 +143,7 @@ async def put( :return: A `Response` object that is the same as `Adaptor` object except it has these added attributes: `status`, `reason`, `cookies`, `headers`, and `request_headers` """ adaptor_arguments = tuple(self.adaptor_arguments.items()) - response_object = await StaticEngine(url, proxy, stealthy_headers, follow_redirects, timeout, retries=retries, adaptor_arguments=adaptor_arguments).async_post(**kwargs) + response_object = await StaticEngine(url, proxy, stealthy_headers, follow_redirects, timeout, retries=retries, adaptor_arguments=adaptor_arguments).async_put(**kwargs) return response_object async def delete(