Skip to content

Commit 629a09a

Browse files
committed
Removed Proxy = null
1 parent 1c6f317 commit 629a09a

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

SpotifyAPI/Local/Models/Track.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ public string GetAlbumArtUrl(AlbumArtSize size)
6666
string raw;
6767
using (WebClient wc = new WebClient())
6868
{
69-
wc.Proxy = null;
7069
raw = wc.DownloadString("http://open.spotify.com/album/" + AlbumResource.Uri.Split(new[] { ":" }, StringSplitOptions.None)[2]);
7170
}
7271
raw = raw.Replace("\t", "");
@@ -99,7 +98,6 @@ public async Task<Bitmap> GetAlbumArtAsync(AlbumArtSize size)
9998
{
10099
using (WebClient wc = new WebClient())
101100
{
102-
wc.Proxy = null;
103101
string url = GetAlbumArtUrl(size);
104102
if (url == "")
105103
return null;
@@ -120,7 +118,6 @@ public Task<byte[]> GetAlbumArtAsByteArrayAsync(AlbumArtSize size)
120118
{
121119
using (WebClient wc = new WebClient())
122120
{
123-
wc.Proxy = null;
124121
string url = GetAlbumArtUrl(size);
125122
if (url == "")
126123
return null;
@@ -137,7 +134,6 @@ public Bitmap GetAlbumArt(AlbumArtSize size)
137134
{
138135
using (WebClient wc = new WebClient())
139136
{
140-
wc.Proxy = null;
141137
string url = GetAlbumArtUrl(size);
142138
if (string.IsNullOrEmpty(url))
143139
return null;
@@ -158,7 +154,6 @@ public byte[] GetAlbumArtAsByteArray(AlbumArtSize size)
158154
{
159155
using (WebClient wc = new WebClient())
160156
{
161-
wc.Proxy = null;
162157
string url = GetAlbumArtUrl(size);
163158
if (string.IsNullOrEmpty(url))
164159
return null;

SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public Token RefreshToken(string refreshToken, string clientSecret)
4646
{
4747
using (WebClient wc = new WebClient())
4848
{
49-
wc.Proxy = null;
5049
wc.Headers.Add("Authorization",
5150
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + clientSecret)));
5251
NameValueCollection col = new NameValueCollection
@@ -125,8 +124,6 @@ public Token ExchangeAuthCode(string code, string clientSecret)
125124
{
126125
using (WebClient wc = new WebClient())
127126
{
128-
wc.Proxy = null;
129-
130127
NameValueCollection col = new NameValueCollection
131128
{
132129
{"grant_type", "authorization_code"},

SpotifyAPI/Web/Auth/ClientCredentialsAuth.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public Token DoAuth()
2323
{
2424
using (WebClient wc = new WebClient())
2525
{
26-
wc.Proxy = null;
2726
wc.Headers.Add("Authorization",
2827
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + ClientSecret)));
2928

0 commit comments

Comments
 (0)