[gnome-boxes/my-fixes: 1/5] downloader: Remove redundant code



commit 05c16357beaea5775b273168c2e131862267971c
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 8894cea..2636840 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]