fix(AsyncFetcher): Fix stealthy_headers issue
This commit is contained in:
@@ -728,9 +728,10 @@ class AsyncFetcherClient:
|
|||||||
"cert": cert,
|
"cert": cert,
|
||||||
"impersonate": impersonate,
|
"impersonate": impersonate,
|
||||||
"http3": http3,
|
"http3": http3,
|
||||||
|
"stealthy_headers": stealthy_headers,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
}
|
}
|
||||||
async with FetcherSession(stealthy_headers=stealthy_headers) as client:
|
async with FetcherSession() as client:
|
||||||
return await client.get(**request_args)
|
return await client.get(**request_args)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@@ -804,9 +805,10 @@ class AsyncFetcherClient:
|
|||||||
"verify": verify,
|
"verify": verify,
|
||||||
"cert": cert,
|
"cert": cert,
|
||||||
"http3": http3,
|
"http3": http3,
|
||||||
|
"stealthy_headers": stealthy_headers,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
}
|
}
|
||||||
async with FetcherSession(stealthy_headers=stealthy_headers) as client:
|
async with FetcherSession() as client:
|
||||||
return await client.post(**request_args)
|
return await client.post(**request_args)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@@ -880,9 +882,10 @@ class AsyncFetcherClient:
|
|||||||
"verify": verify,
|
"verify": verify,
|
||||||
"cert": cert,
|
"cert": cert,
|
||||||
"http3": http3,
|
"http3": http3,
|
||||||
|
"stealthy_headers": stealthy_headers,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
}
|
}
|
||||||
async with FetcherSession(stealthy_headers=stealthy_headers) as client:
|
async with FetcherSession() as client:
|
||||||
return await client.put(**request_args)
|
return await client.put(**request_args)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@@ -958,7 +961,8 @@ class AsyncFetcherClient:
|
|||||||
"verify": verify,
|
"verify": verify,
|
||||||
"cert": cert,
|
"cert": cert,
|
||||||
"http3": http3,
|
"http3": http3,
|
||||||
|
"stealthy_headers": stealthy_headers,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
}
|
}
|
||||||
async with FetcherSession(stealthy_headers=stealthy_headers) as client:
|
async with FetcherSession() as client:
|
||||||
return await client.delete(**request_args)
|
return await client.delete(**request_args)
|
||||||
|
|||||||
Reference in New Issue
Block a user