summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorcboesch <cboesch@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-11-18 20:18:44 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-12-16 04:12:36 +0200
commit3073eaa8d397fc9a93678283872b295a9028b3c4 (patch)
tree6c40dc8ed20966d973dfbd3ba0b149a38d448c82 /stream
parente8757fb88311329a35d874b43ff1aaf095ed4147 (diff)
downloadmpv-3073eaa8d397fc9a93678283872b295a9028b3c4.tar.bz2
mpv-3073eaa8d397fc9a93678283872b295a9028b3c4.tar.xz
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
Diffstat (limited to 'stream')
-rw-r--r--stream/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/network.c b/stream/network.c
index 817ce45414..de03f7d839 100644
--- a/stream/network.c
+++ b/stream/network.c
@@ -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 );
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;
}