From 24d002e04d46ed510d5591563eb2a21574ff0c9a Mon Sep 17 00:00:00 2001 From: Konstantin Miller Date: Mon, 29 Aug 2011 14:12:22 +0200 Subject: [PATCH] souphttpsrc: Don't handle HTTP response 407 as error if proxy authentication data is available Fixes bug #657422. --- ext/soup/gstsouphttpsrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 8735f4f697..3011058850 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -734,6 +734,9 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src) soup_message_headers_foreach (msg->response_headers, gst_soup_http_src_headers_foreach, src); + if (msg->status_code == 407 && src->proxy_id && src->proxy_pw) + return; + if (src->automatic_redirect && SOUP_STATUS_IS_REDIRECTION (msg->status_code)) { GST_DEBUG_OBJECT (src, "%u redirect to \"%s\"", msg->status_code, soup_message_headers_get (msg->response_headers, "Location"));