Skip to content

httpx upgrade Compatibility #1

@cnzyan

Description

@cnzyan

core\request_engine.py should change from line #23:

Ensure User-Agent is set

 if "User-Agent" not in self.headers:
       self.headers["User-Agent"] = DEFAULT_USER_AGENT
  transport = httpx.AsyncHTTPTransport(proxy=self.proxies)
   self.client = httpx.AsyncClient(
      mounts={"all://": transport},
      headers=self.headers,
      cookies=self.cookies,
      timeout=self.timeout,
      verify=False, # Often needed for pentesting targets with self-signed certs
      trust_env=False # Ignore system proxies to avoid issues with localhost
   )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions