shithub: riscv

Download patch

ref: 5275d49d8fee2dac09f31c955873ad5aa6734e8d
parent: 0da58889017158bb6c22119d7f110574cfc94f01
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 */