>Number:         180666
>Category:       bin
>Synopsis:       [patch] fix libfetch incorrect location sent over https with 
>http proxy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 20 02:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     [email protected]
>Release:        
>Organization:
>Environment:
>Description:
when using the new https over http proxy support, libfetch sends GET 
https://host/doc to host after connecting with CONNECT via the proxy. attached 
patch alters libfetch so it sends GET /doc instead.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: lib/libfetch/http.c
===================================================================
--- lib/libfetch/http.c (revision 253282)
+++ lib/libfetch/http.c (working copy)
@@ -1581,7 +1581,10 @@
                if (verbose)
                        fetch_info("requesting %s://%s%s",
                            url->scheme, host, url->doc);
-               if (purl) {
+               if (strcasecmp(url->scheme, SCHEME_HTTPS) == 0 && purl) {
+                       http_cmd(conn, "%s %s HTTP/1.1",
+                           op, url->doc);
+               } else if (purl) {
                        http_cmd(conn, "%s %s://%s%s HTTP/1.1",
                            op, url->scheme, host, url->doc);
                } else {


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to