stream/http: don't use proxy values for "Authorization" header

"Authorization" header is for the destination server URL, even through
a proxy.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32633 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cboesch 2010-11-18 20:18:44 +00:00 committed by Uoti Urpala
parent e8757fb883
commit 3073eaa8d3
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ http_send_request( URL_t *url, off_t pos ) {
if (network_cookies_enabled) cookies_set( http_hdr, server_url->hostname, server_url->url ); if (network_cookies_enabled) cookies_set( http_hdr, server_url->hostname, server_url->url );
http_set_field( http_hdr, "Connection: close"); 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 ) { if( http_build_request( http_hdr )==NULL ) {
goto err_out; goto err_out;
} }