mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 15:06:26 +00:00
Merge pull request #58 from haefele/master
Remove setting the WebClient.Proxy to null
This commit is contained in:
commit
20972c46d6
@ -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");
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user