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
This commit is contained in:
parent
47ca2ce499
commit
52eb761acc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user