summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2017-06-29 15:22:39 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-06-29 15:24:30 -0400
commit52eb761acc46942dc05d7afe1a6a1da251cd2810 (patch)
tree634f15e9ca46b842cd2c6281d3f26df7e4b25680 /ext
parent47ca2ce499de307faae1d25e22598429555ad0ab (diff)
souphttpsrc: Allow any type of proxy
Currently we only allowed HTTP proxy. Don't filter for the scheme, just check if it looks like an URI. Soup will warn if the URI is invalid or if proxy protocol is not supported. This enables using SOCKS 4/5 which is directly implemented into GIO. https://bugzilla.gnome.org/show_bug.cgi?id=783012
Diffstat (limited to 'ext')
-rw-r--r--ext/soup/gstsouphttpsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c
index 5decb9223..f603ff5ab 100644
--- a/ext/soup/gstsouphttpsrc.c
+++ b/ext/soup/gstsouphttpsrc.c
@@ -2098,7 +2098,7 @@ gst_soup_http_src_set_proxy (GstSoupHTTPSrc * src, const gchar * uri)
if (uri == NULL || *uri == '\0')
return TRUE;
- if (g_str_has_prefix (uri, "http://")) {
+ if (g_strstr_len (uri, -1, "://")) {
src->proxy = soup_uri_new (uri);
} else {
gchar *new_uri = g_strconcat ("http://", uri, NULL);