>From 96d95f590c941eba540217f5a79e49bf14ba6c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 18 Nov 2010 21:27:03 +0100 Subject: [PATCH] Do not keep authentication in URL on connection through a proxy --- stream/network.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/stream/network.c b/stream/network.c index 02ddcc8..6b7117c 100644 --- a/stream/network.c +++ b/stream/network.c @@ -209,7 +209,12 @@ http_send_request( URL_t *url, off_t pos ) { mp_msg(MSGT_NETWORK, MSGL_ERR, "Invalid URL '%s' to proxify\n", url->file+1); goto err_out; } - http_set_uri( http_hdr, server_url->url ); + snprintf(str, sizeof(str), "%s://%s:%d%s", + server_url->protocol, + server_url->hostname, + server_url->port ? server_url->port : 80, + server_url->file); + http_set_uri(http_hdr, str); } else { server_url = url; http_set_uri( http_hdr, server_url->file ); -- 1.7.3.2