Date: Sun, 21 Jul 2013 06:59:57 +0000 (UTC) From: Dag-Erling Smørgrav <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253514 - head/lib/libfetch Message-ID: <201307210659.r6L6xvHX012361@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: des Date: Sun Jul 21 06:59:56 2013 New Revision: 253514 URL: http://svnweb.freebsd.org/changeset/base/253514 Log: Use the correct request syntax for proxied (tunneled) HTTPS requests. PR: bin/180666 MFC after: 3 days Modified: head/lib/libfetch/http.c Modified: head/lib/libfetch/http.c ============================================================================== --- head/lib/libfetch/http.c Sun Jul 21 05:23:34 2013 (r253513) +++ head/lib/libfetch/http.c Sun Jul 21 06:59:56 2013 (r253514) @@ -1581,7 +1581,7 @@ http_request(struct url *URL, const char 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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307210659.r6L6xvHX012361>