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 {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to