Skip to content

Commit

Permalink
Removed Proxy = null
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyCrazy committed May 31, 2017
1 parent 1c6f317 commit 629a09a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions SpotifyAPI/Local/Models/Track.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public string GetAlbumArtUrl(AlbumArtSize size)
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", "");
Expand Down Expand Up @@ -99,7 +98,6 @@ public async Task<Bitmap> GetAlbumArtAsync(AlbumArtSize size)
{
using (WebClient wc = new WebClient())
{
wc.Proxy = null;
string url = GetAlbumArtUrl(size);
if (url == "")
return null;
Expand All @@ -120,7 +118,6 @@ public Task<byte[]> GetAlbumArtAsByteArrayAsync(AlbumArtSize size)
{
using (WebClient wc = new WebClient())
{
wc.Proxy = null;
string url = GetAlbumArtUrl(size);
if (url == "")
return null;
Expand All @@ -137,7 +134,6 @@ public Bitmap GetAlbumArt(AlbumArtSize size)
{
using (WebClient wc = new WebClient())
{
wc.Proxy = null;
string url = GetAlbumArtUrl(size);
if (string.IsNullOrEmpty(url))
return null;
Expand All @@ -158,7 +154,6 @@ public byte[] GetAlbumArtAsByteArray(AlbumArtSize size)
{
using (WebClient wc = new WebClient())
{
wc.Proxy = null;
string url = GetAlbumArtUrl(size);
if (string.IsNullOrEmpty(url))
return null;
Expand Down
3 changes: 0 additions & 3 deletions SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public Token RefreshToken(string refreshToken, string clientSecret)
{
using (WebClient wc = new WebClient())
{
wc.Proxy = null;
wc.Headers.Add("Authorization",
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + clientSecret)));
NameValueCollection col = new NameValueCollection
Expand Down Expand Up @@ -125,8 +124,6 @@ public Token ExchangeAuthCode(string code, string clientSecret)
{
using (WebClient wc = new WebClient())
{
wc.Proxy = null;

NameValueCollection col = new NameValueCollection
{
{"grant_type", "authorization_code"},
Expand Down
1 change: 0 additions & 1 deletion SpotifyAPI/Web/Auth/ClientCredentialsAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public Token DoAuth()
{
using (WebClient wc = new WebClient())
{
wc.Proxy = null;
wc.Headers.Add("Authorization",
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + ClientSecret)));

Expand Down

0 comments on commit 629a09a

Please sign in to comment.