mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
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:
parent
f320dae4ce
commit
c981b35085
@ -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