Use the correct request syntax for proxied (tunneled) HTTPS requests.

PR:		bin/180666
MFC after:	3 days
This commit is contained in:
Dag-Erling Smørgrav 2013-07-21 06:59:56 +00:00
parent 3c334738ab
commit ba7c6aec97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253514

View File

@ -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 {