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.
This commit is contained in:
Daniel Häfele 2015-11-26 21:17:37 +01:00
parent f320dae4ce
commit c981b35085
2 changed files with 0 additions and 2 deletions

View File

@ -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");
}

View File

@ -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<String, object> dic = JsonConvert.DeserializeObject<Dictionary<String, object>>(raw);