[PATCH 1/2] Authentication with server_url instead of url

Clément Bœsch ubitux at gmail.com
Fri Nov 12 10:27:25 CET 2010


The Authentication header is for the destination server URL, even when
using a proxy
---
 stream/network.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/stream/network.c b/stream/network.c
index 37bfc00..c8ec643 100644
--- a/stream/network.c
+++ b/stream/network.c
@@ -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;
 	}
-- 
1.7.3.2


--e2bLSPRkEYxxSNev
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="0002-Add-Proxy-Authorization-to-authenticate-on-proxies.patch"



More information about the MPlayer-dev-eng mailing list