Skip to content

Commit 2423fed

Browse files
committed
Update CDP Mode
1 parent 3b58d65 commit 2423fed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seleniumbase/undetected/cdp_driver/browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,12 +935,12 @@ async def get(self, endpoint: str):
935935
async def post(self, endpoint, data):
936936
return await self._request(endpoint, data)
937937

938-
async def _request(self, endpoint, method: str = "get", data: dict = None):
938+
async def _request(self, endpoint, method: str = "GET", data: dict = None):
939939
url = urllib.parse.urljoin(
940940
self.api, f"json/{endpoint}" if endpoint else "/json"
941941
)
942942
if data and method.lower() == "get":
943-
raise ValueError("get requests cannot contain data")
943+
raise ValueError("GET requests cannot contain data")
944944
if not url:
945945
url = self.api + endpoint
946946
request = urllib.request.Request(url)

0 commit comments

Comments
 (0)