[MPlayer-cvslog] r32633 - trunk/stream/network.c

cboesch subversion at mplayerhq.hu
Thu Nov 18 21:18:45 CET 2010


Author: cboesch
Date: Thu Nov 18 21:18:44 2010
New Revision: 32633

Log:
"Authentication" header is for the destination server URL, even through a proxy

Modified:
   trunk/stream/network.c

Modified: trunk/stream/network.c
==============================================================================
--- trunk/stream/network.c	Wed Nov 17 22:14:55 2010	(r32632)
+++ trunk/stream/network.c	Thu Nov 18 21:18:44 2010	(r32633)
@@ -254,7 +254,7 @@ http_send_request( URL_t *url, off_t pos
 	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;
 	}


More information about the MPlayer-cvslog mailing list