Moved Encoding to ExtendedWebClient

This commit is contained in:
Jonas Dellinger 2017-09-03 14:46:25 +02:00
parent 163ed9b52f
commit 1af1d37a35
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.Net;
using System.Text;
namespace SpotifyAPI.Local
{
@ -11,7 +12,7 @@ namespace SpotifyAPI.Local
{
// TODO Remove once SSL Issues are resolved #115
ServicePointManager.ServerCertificateValidationCallback = (s, certificate, chain, sslPolicyErrors) => true;
Encoding = Encoding.UTF8;
Timeout = 2000;
Headers.Add("Origin", "https://embed.spotify.com");
Headers.Add("Referer", "https://embed.spotify.com/?uri=spotify:track:5Zp4SWOpbuOdnsxLqwgutt");

View File

@ -114,7 +114,6 @@ namespace SpotifyAPI.Local
{
if (SpotifyLocalAPI.IsSpotifyRunning())
{
wc.Encoding = Encoding.UTF8;
response = "[ " + wc.DownloadString(address) + " ]";
}
}