diff options
author | cboesch <cboesch@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-11-18 20:20:39 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-16 04:13:16 +0200 |
commit | 8ffe2c9afe82366c08d4bb21849dec17eccdf949 (patch) | |
tree | 59809e23d1a825b3d7ca16ce314d86cd944c1d17 /stream/network.c | |
parent | 3073eaa8d397fc9a93678283872b295a9028b3c4 (diff) | |
download | mpv-8ffe2c9afe82366c08d4bb21849dec17eccdf949.tar.bz2 mpv-8ffe2c9afe82366c08d4bb21849dec17eccdf949.tar.xz |
stream/http: Add Proxy-Authorization header to authenticate on proxies
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32634 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/network.c')
-rw-r--r-- | stream/network.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/network.c b/stream/network.c index de03f7d839..184be96682 100644 --- a/stream/network.c +++ b/stream/network.c @@ -255,6 +255,8 @@ 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"); + if (proxy) + http_add_basic_proxy_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; |