Merge pull request #58 from haefele/master

Remove setting the WebClient.Proxy to null
This commit is contained in:
Jonas Dellinger 2015-11-29 17:53:45 +01:00
commit 20972c46d6
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);