Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2013 02:07:25 GMT
From:      "r4721@tormail.org" <r4721@tormail.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/180666: [patch] fix libfetch incorrect location sent over https with http proxy 
Message-ID:  <201307200207.r6K27Pi9020562@oldred.freebsd.org>
Resent-Message-ID: <201307200210.r6K2A0G8091088@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:     r4721@tormail.org
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307200207.r6K27Pi9020562>