mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Use the correct request syntax for proxied (tunneled) HTTPS requests.
PR: bin/180666 MFC after: 3 days
This commit is contained in:
parent
3c334738ab
commit
ba7c6aec97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253514
@ -1581,7 +1581,7 @@ http_request(struct url *URL, const char *op, struct url_stat *us,
|
||||
if (verbose)
|
||||
fetch_info("requesting %s://%s%s",
|
||||
url->scheme, host, url->doc);
|
||||
if (purl) {
|
||||
if (purl && strcasecmp(URL->scheme, SCHEME_HTTPS) != 0) {
|
||||
http_cmd(conn, "%s %s://%s%s HTTP/1.1",
|
||||
op, url->scheme, host, url->doc);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user