File tree 2 files changed +8
-0
lines changed
src/pip/_internal/network 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ If a host is explicitly specified as trusted by the user (via the --trusted-host option), cache HTTP responses from it in addition to HTTPS ones.
Original file line number Diff line number Diff line change @@ -358,8 +358,15 @@ def add_trusted_host(
358
358
if host_port not in self .pip_trusted_origins :
359
359
self .pip_trusted_origins .append (host_port )
360
360
361
+ self .mount (
362
+ build_url_from_netloc (host , scheme = "http" ) + "/" , self ._trusted_host_adapter
363
+ )
361
364
self .mount (build_url_from_netloc (host ) + "/" , self ._trusted_host_adapter )
362
365
if not host_port [1 ]:
366
+ self .mount (
367
+ build_url_from_netloc (host , scheme = "http" ) + ":" ,
368
+ self ._trusted_host_adapter ,
369
+ )
363
370
# Mount wildcard ports for the same host.
364
371
self .mount (build_url_from_netloc (host ) + ":" , self ._trusted_host_adapter )
365
372
You can’t perform that action at this time.
0 commit comments