Add hostname to insecure connection warning.
MODIFY
src/urllib3/connectionpool.py
src/urllib3/connectionpool.py
@@ -996,10 +996,10 @@ class HTTPSConnectionPool(HTTPConnectionPool):
if not conn.is_verified:
warnings.warn(
(
- "Unverified HTTPS request is being made. "
+ "Unverified HTTPS request is being made to host '%s'. "
"Adding certificate verification is strongly advised. See: "
"https://urllib3.readthedocs.io/en/latest/advanced-usage.html"
- "#ssl-warnings"
+ "#ssl-warnings" % conn.host
),
InsecureRequestWarning,
)

Add hostname to insecure connection warning. (#1691)