[gnome-boxes] downloader: Remove redundant code
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] downloader: Remove redundant code
- Date: Tue, 29 Aug 2017 11:05:13 +0000 (UTC)
commit 2941cd80d5fadc512a550a036dfb8812d1f1c2b4
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]