changeset 32546:e21aa887e9df

"Authentication" header is for the destination server URL, even through a proxy
author cboesch
date Thu, 18 Nov 2010 20:18:44 +0000
parents 25de211794e8
children 6a629e6fdb09
files stream/network.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/network.c	Wed Nov 17 21:14:55 2010 +0000
+++ b/stream/network.c	Thu Nov 18 20:18:44 2010 +0000
@@ -254,7 +254,7 @@
 	if (network_cookies_enabled) cookies_set( http_hdr, server_url->hostname, server_url->url );
 
 	http_set_field( http_hdr, "Connection: close");
-	http_add_basic_authentication( http_hdr, url->username, url->password );
+	http_add_basic_authentication(http_hdr, server_url->username, server_url->password);
 	if( http_build_request( http_hdr )==NULL ) {
 		goto err_out;
 	}