Bug 252128 - fetch(3); Add support of HTTPS_PROXY/https_proxy environment variables
Summary: fetch(3); Add support of HTTPS_PROXY/https_proxy environment variables
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL: https://reviews.freebsd.org/D28438
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-25 10:49 UTC by Yasuhiro Kimura
Modified: 2021-01-31 17:18 UTC (History)
1 user (show)

See Also:


Attachments
Patch file (2.91 KB, patch)
2020-12-25 10:49 UTC, Yasuhiro Kimura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer 2020-12-25 10:49:16 UTC
Created attachment 220909 [details]
Patch file

Add support of HTTPS_PROXY/https_proxy environment variables. They works similar to FTP_PROXY/ftp_proxy environment variables for FTP scheme. That is, if scheme of request URL is "https" fetch(3) checks if following environment variables are set in this order.
    
1. HTTPS_PROXY
2. https_proxy
3. HTTP_PROXY
4. http_proxy
    
And the value of first one set is used as setting of proxy for https.
Comment 1 Yasuhiro Kimura freebsd_committer 2021-01-31 17:18:29 UTC
I created the review of the patch.

https://reviews.freebsd.org/D28438