git: 9front

Download patch

ref: 3bb6445c5a277706b0ae6146acda974d3b99b390
parent: 67a0c4fae461769caddbb57202ac639f160b296a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun May 10 03:46:53 EDT 2015

webfs: fix proxy authentication

--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -857,7 +857,7 @@
 				goto Error;
 			if(x = lookkey(shdr, "Proxy-Authorization"))
 				flushauth(proxy, x);
-			if(hauthenticate(u, &ru, method, "Proxy-Authenticate", rhdr) < 0)
+			if(hauthenticate(proxy, proxy, method, "Proxy-Authenticate", rhdr) < 0)
 				goto Error;
 			}
 		case 0:		/* No status */
--