mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 13:23:07 +02:00
Revert "gsimpleproxyresolver: Make explicit that a port is needed for HTTP/HTTPS"
This reverts commit eb12afed6f36db6212228b1e1fbaf87ed5606173 Instead, let's allow use of URIs without ports specified, which indicates that a default port should be used.
This commit is contained in:
parent
a0ea1d7093
commit
1c3f992f11
@ -426,10 +426,6 @@ g_simple_proxy_resolver_class_init (GSimpleProxyResolverClass *resolver_class)
|
|||||||
* Note that as a special case, if this URI starts with
|
* Note that as a special case, if this URI starts with
|
||||||
* "socks://", #GSimpleProxyResolver will treat it as referring
|
* "socks://", #GSimpleProxyResolver will treat it as referring
|
||||||
* to all three of the socks5, socks4a, and socks4 proxy types.
|
* to all three of the socks5, socks4a, and socks4 proxy types.
|
||||||
*
|
|
||||||
* If you are making an HTTP or HTTPS proxy resolver, you must explicitly
|
|
||||||
* add the port to the URI even if the default port is used. For example:
|
|
||||||
* `https://example.com:443` or `http://example.com:80`.
|
|
||||||
*/
|
*/
|
||||||
g_object_class_install_property (object_class, PROP_DEFAULT_PROXY,
|
g_object_class_install_property (object_class, PROP_DEFAULT_PROXY,
|
||||||
g_param_spec_string ("default-proxy",
|
g_param_spec_string ("default-proxy",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user