Merge pull request #2682 from yueguobin/fix/packet-capture-https-skip-cert

fix(copilot): add verify=False for HTTPS with self-signed certs
This commit is contained in:
Jeremy Grossmann 2026-04-23 23:44:25 +08:00 committed by GitHub
commit 9d0bb4a592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,11 +185,14 @@ class PacketCaptureTool(BaseTool):
import requests
headers = {"Authorization": f"Bearer {jwt_token}"}
# Use verify=False for HTTPS to skip certificate validation (for self-signed certs)
verify_cert = not capture_url.startswith("https://")
response = requests.get(
capture_url,
headers=headers,
stream=True,
timeout=30,
verify=verify_cert,
)
if response.status_code != 200: