[gnome-boxes/wip/rishi/my-fixes: 2/9] downloader: Remove redundant code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/rishi/my-fixes: 2/9] downloader: Remove redundant code
- Date: Thu, 24 Aug 2017 17:39:18 +0000 (UTC)
commit 57da7a05766164290a266e040aed88ff94542ab9
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Aug 15 19:35:52 2017 +0200
downloader: Remove redundant code
There is no need add a Soup.ProxyResolverDefault to a Soup.Session
with libsoup >= 2.44. Soup.Session.proxy-resolver is automatically set
to the default GLib.ProxyResolver, which is the same thing as adding a
Soup.ProxyResolverDefault.
https://bugzilla.gnome.org/show_bug.cgi?id=786335
src/downloader.vala | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/downloader.vala b/src/downloader.vala
index 14ae069..86fac3b 100644
--- a/src/downloader.vala
+++ b/src/downloader.vala
@@ -53,7 +53,6 @@ private class Boxes.Downloader : GLib.Object {
downloads = new GLib.HashTable <string,Download> (str_hash, str_equal);
session = new Soup.Session ();
- session.add_feature_by_type (typeof (Soup.ProxyResolverDefault));
if (Environment.get_variable ("SOUP_DEBUG") != null)
session.add_feature (new Soup.Logger (Soup.LoggerLogLevel.HEADERS, -1));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]