From 629a09a980881c7b7041b24eff77124f19c44040 Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Wed, 31 May 2017 18:24:22 +0200 Subject: [PATCH] Removed Proxy = null --- SpotifyAPI/Local/Models/Track.cs | 5 ----- SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs | 3 --- SpotifyAPI/Web/Auth/ClientCredentialsAuth.cs | 1 - 3 files changed, 9 deletions(-) diff --git a/SpotifyAPI/Local/Models/Track.cs b/SpotifyAPI/Local/Models/Track.cs index 36f45f84..0a8f8d62 100755 --- a/SpotifyAPI/Local/Models/Track.cs +++ b/SpotifyAPI/Local/Models/Track.cs @@ -66,7 +66,6 @@ namespace SpotifyAPI.Local.Models string raw; using (WebClient wc = new WebClient()) { - wc.Proxy = null; raw = wc.DownloadString("http://open.spotify.com/album/" + AlbumResource.Uri.Split(new[] { ":" }, StringSplitOptions.None)[2]); } raw = raw.Replace("\t", ""); @@ -99,7 +98,6 @@ namespace SpotifyAPI.Local.Models { using (WebClient wc = new WebClient()) { - wc.Proxy = null; string url = GetAlbumArtUrl(size); if (url == "") return null; @@ -120,7 +118,6 @@ namespace SpotifyAPI.Local.Models { using (WebClient wc = new WebClient()) { - wc.Proxy = null; string url = GetAlbumArtUrl(size); if (url == "") return null; @@ -137,7 +134,6 @@ namespace SpotifyAPI.Local.Models { using (WebClient wc = new WebClient()) { - wc.Proxy = null; string url = GetAlbumArtUrl(size); if (string.IsNullOrEmpty(url)) return null; @@ -158,7 +154,6 @@ namespace SpotifyAPI.Local.Models { using (WebClient wc = new WebClient()) { - wc.Proxy = null; string url = GetAlbumArtUrl(size); if (string.IsNullOrEmpty(url)) return null; diff --git a/SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs b/SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs index 7cde7ab9..a6785e56 100644 --- a/SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs +++ b/SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs @@ -46,7 +46,6 @@ namespace SpotifyAPI.Web.Auth { using (WebClient wc = new WebClient()) { - wc.Proxy = null; wc.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + clientSecret))); NameValueCollection col = new NameValueCollection @@ -125,8 +124,6 @@ namespace SpotifyAPI.Web.Auth { using (WebClient wc = new WebClient()) { - wc.Proxy = null; - NameValueCollection col = new NameValueCollection { {"grant_type", "authorization_code"}, diff --git a/SpotifyAPI/Web/Auth/ClientCredentialsAuth.cs b/SpotifyAPI/Web/Auth/ClientCredentialsAuth.cs index 13981328..281a48b3 100644 --- a/SpotifyAPI/Web/Auth/ClientCredentialsAuth.cs +++ b/SpotifyAPI/Web/Auth/ClientCredentialsAuth.cs @@ -23,7 +23,6 @@ namespace SpotifyAPI.Web.Auth { using (WebClient wc = new WebClient()) { - wc.Proxy = null; wc.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + ClientSecret)));