Typo it should be challenge_res

This commit is contained in:
T10 2023-11-19 20:31:59 +00:00 committed by GitHub
parent 8b0ffcbc9a
commit 87c222068e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,7 +395,7 @@ def _evil_logic(req: V1RequestBase, driver: WebDriver, method: str) -> Challenge
challenge_res.userAgent = utils.get_user_agent(driver)
if req.execjs:
r = driver.execute_script(req.execjs)
res.jsrespond = r
challenge_res.jsrespond = r
logging.info(f"executing {req.execjs} and got an output {r}")
if not req.returnOnlyCookies:
challenge_res.headers = {} # todo: fix, selenium not provides this info