Removed Proxy = null

This commit is contained in:
Jonas Dellinger 2017-05-31 18:24:22 +02:00
parent 1c6f317dda
commit 629a09a980
3 changed files with 0 additions and 9 deletions

View File

@ -66,7 +66,6 @@ namespace SpotifyAPI.Local.Models
string raw; string raw;
using (WebClient wc = new WebClient()) using (WebClient wc = new WebClient())
{ {
wc.Proxy = null;
raw = wc.DownloadString("http://open.spotify.com/album/" + AlbumResource.Uri.Split(new[] { ":" }, StringSplitOptions.None)[2]); raw = wc.DownloadString("http://open.spotify.com/album/" + AlbumResource.Uri.Split(new[] { ":" }, StringSplitOptions.None)[2]);
} }
raw = raw.Replace("\t", ""); raw = raw.Replace("\t", "");
@ -99,7 +98,6 @@ namespace SpotifyAPI.Local.Models
{ {
using (WebClient wc = new WebClient()) using (WebClient wc = new WebClient())
{ {
wc.Proxy = null;
string url = GetAlbumArtUrl(size); string url = GetAlbumArtUrl(size);
if (url == "") if (url == "")
return null; return null;
@ -120,7 +118,6 @@ namespace SpotifyAPI.Local.Models
{ {
using (WebClient wc = new WebClient()) using (WebClient wc = new WebClient())
{ {
wc.Proxy = null;
string url = GetAlbumArtUrl(size); string url = GetAlbumArtUrl(size);
if (url == "") if (url == "")
return null; return null;
@ -137,7 +134,6 @@ namespace SpotifyAPI.Local.Models
{ {
using (WebClient wc = new WebClient()) using (WebClient wc = new WebClient())
{ {
wc.Proxy = null;
string url = GetAlbumArtUrl(size); string url = GetAlbumArtUrl(size);
if (string.IsNullOrEmpty(url)) if (string.IsNullOrEmpty(url))
return null; return null;
@ -158,7 +154,6 @@ namespace SpotifyAPI.Local.Models
{ {
using (WebClient wc = new WebClient()) using (WebClient wc = new WebClient())
{ {
wc.Proxy = null;
string url = GetAlbumArtUrl(size); string url = GetAlbumArtUrl(size);
if (string.IsNullOrEmpty(url)) if (string.IsNullOrEmpty(url))
return null; return null;

View File

@ -46,7 +46,6 @@ namespace SpotifyAPI.Web.Auth
{ {
using (WebClient wc = new WebClient()) using (WebClient wc = new WebClient())
{ {
wc.Proxy = null;
wc.Headers.Add("Authorization", wc.Headers.Add("Authorization",
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + clientSecret))); "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + clientSecret)));
NameValueCollection col = new NameValueCollection NameValueCollection col = new NameValueCollection
@ -125,8 +124,6 @@ namespace SpotifyAPI.Web.Auth
{ {
using (WebClient wc = new WebClient()) using (WebClient wc = new WebClient())
{ {
wc.Proxy = null;
NameValueCollection col = new NameValueCollection NameValueCollection col = new NameValueCollection
{ {
{"grant_type", "authorization_code"}, {"grant_type", "authorization_code"},

View File

@ -23,7 +23,6 @@ namespace SpotifyAPI.Web.Auth
{ {
using (WebClient wc = new WebClient()) using (WebClient wc = new WebClient())
{ {
wc.Proxy = null;
wc.Headers.Add("Authorization", wc.Headers.Add("Authorization",
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + ClientSecret))); "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + ClientSecret)));