From 14203f055a84d08ac32ab003670a99b51ba0a6c7 Mon Sep 17 00:00:00 2001 From: simon04 Date: Mon, 7 Nov 2011 20:58:26 +0100 Subject: [PATCH] see #11 - attempt to respect proxy settings (patch by popsas-lt) --- src/extension.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/extension.js b/src/extension.js index 651c6f0..46a5e9d 100644 --- a/src/extension.js +++ b/src/extension.js @@ -449,6 +449,10 @@ WeatherMenuButton.prototype = { load_json_async: function(url, fun) { let here = this; let session = new Soup.SessionAsync(); + + if (Soup.Session.prototype.add_feature != null) + Soup.Session.prototype.add_feature.call(session, new Soup.ProxyResolverDefault()); + let message = Soup.Message.new('GET', url); session.queue_message(message, function(session, message) { let jp = new Json.Parser();