[PATCH] Do not keep authentication in URL on connection through a proxy
Clément Bœsch
ubitux at gmail.com
Thu Nov 18 21:27:03 CET 2010
---
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
--RIYY1s2vRbPFwWeW--
More information about the MPlayer-dev-eng
mailing list