[glib-networking] Allow local pac files in pacrunner
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] Allow local pac files in pacrunner
- Date: Mon, 23 Apr 2012 20:18:06 +0000 (UTC)
commit a074e5bbaf072b3e9bc71a6434f174af8631e7f5
Author: Chow Loong Jin <hyperair debian org>
Date: Sun Apr 15 04:12:00 2012 +0800
Allow local pac files in pacrunner
This fixes bgo#674115
proxy/libproxy/glibpacrunner.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/proxy/libproxy/glibpacrunner.c b/proxy/libproxy/glibpacrunner.c
index 0a141f4..1e97444 100644
--- a/proxy/libproxy/glibpacrunner.c
+++ b/proxy/libproxy/glibpacrunner.c
@@ -69,7 +69,8 @@ handle_method_call (GDBusConnection *connection,
g_variant_get (parameters, "(&s&s)", &pac_url, &lookup_url);
- if (!g_ascii_strncasecmp (pac_url, "http", 4))
+ if (!g_ascii_strncasecmp (pac_url, "http", 4) ||
+ !g_ascii_strncasecmp (pac_url, "file:", 5))
{
gchar *libproxy_url = g_strdup_printf ("pac+%s", pac_url);
g_setenv ("http_proxy", libproxy_url, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]