We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b58d65 commit 2423fedCopy full SHA for 2423fed
seleniumbase/undetected/cdp_driver/browser.py
@@ -935,12 +935,12 @@ async def get(self, endpoint: str):
935
async def post(self, endpoint, data):
936
return await self._request(endpoint, data)
937
938
- async def _request(self, endpoint, method: str = "get", data: dict = None):
+ async def _request(self, endpoint, method: str = "GET", data: dict = None):
939
url = urllib.parse.urljoin(
940
self.api, f"json/{endpoint}" if endpoint else "/json"
941
)
942
if data and method.lower() == "get":
943
- raise ValueError("get requests cannot contain data")
+ raise ValueError("GET requests cannot contain data")
944
if not url:
945
url = self.api + endpoint
946
request = urllib.request.Request(url)
0 commit comments