[libsoup] SoupProxyResolver: construct a valid SoupURI
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] SoupProxyResolver: construct a valid SoupURI
- Date: Mon, 6 Feb 2012 22:14:30 +0000 (UTC)
commit 6679ab2a4ba2bf6bb6a4c7065fbc78c84461b97d
Author: Simon McVittie <simon mcvittie collabora co uk>
Date: Fri Feb 3 17:47:16 2012 +0000
SoupProxyResolver: construct a valid SoupURI
path = NULL is not considered valid.
Signed-off-by: Simon McVittie <simon mcvittie collabora co uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=667637
Bug-NB: NB#294977
libsoup/soup-proxy-resolver.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-proxy-resolver.c b/libsoup/soup-proxy-resolver.c
index c356ab1..837a1f7 100644
--- a/libsoup/soup-proxy-resolver.c
+++ b/libsoup/soup-proxy-resolver.c
@@ -111,6 +111,7 @@ uri_from_address (SoupAddress *addr)
soup_uri_set_scheme (proxy_uri, SOUP_URI_SCHEME_HTTP);
soup_uri_set_host (proxy_uri, soup_address_get_name (addr));
soup_uri_set_port (proxy_uri, soup_address_get_port (addr));
+ soup_uri_set_path (proxy_uri, "");
return proxy_uri;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]