From c981b3508548b4e5c7527bd7fdb597589d1da3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fele?= Date: Thu, 26 Nov 2015 21:17:37 +0100 Subject: [PATCH] Remove setting the WebClient.Proxy to null It should be fine in most of the cases to just use the system proxy settings. If anyone has issues with this approach, we can still make the WebClient.Proxy setting configurable somehow. --- SpotifyAPI/Local/ExtendedWebClient.cs | 1 - SpotifyAPI/Local/RemoteHandler.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/SpotifyAPI/Local/ExtendedWebClient.cs b/SpotifyAPI/Local/ExtendedWebClient.cs index 3d217ee1..dcb64c1d 100644 --- a/SpotifyAPI/Local/ExtendedWebClient.cs +++ b/SpotifyAPI/Local/ExtendedWebClient.cs @@ -10,7 +10,6 @@ namespace SpotifyAPI.Local public ExtendedWebClient() { Timeout = 2000; - Proxy = null; Headers.Add("Origin", "https://embed.spotify.com"); Headers.Add("Referer", "https://embed.spotify.com/?uri=spotify:track:5Zp4SWOpbuOdnsxLqwgutt"); } diff --git a/SpotifyAPI/Local/RemoteHandler.cs b/SpotifyAPI/Local/RemoteHandler.cs index 485d28db..51d55458 100644 --- a/SpotifyAPI/Local/RemoteHandler.cs +++ b/SpotifyAPI/Local/RemoteHandler.cs @@ -62,7 +62,6 @@ namespace SpotifyAPI.Local String raw; using (WebClient wc = new WebClient()) { - wc.Proxy = null; raw = wc.DownloadString("http://open.spotify.com/token"); } Dictionary dic = JsonConvert.DeserializeObject>(raw);