Skip to content

Commit 1af1d37

Browse files
author
Jonas Dellinger
committed
Moved Encoding to ExtendedWebClient
1 parent 163ed9b commit 1af1d37

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎SpotifyAPI/Local/ExtendedWebClient.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Net;
3+
using System.Text;
34

45
namespace SpotifyAPI.Local
56
{
@@ -11,7 +12,7 @@ public ExtendedWebClient()
1112
{
1213
// TODO Remove once SSL Issues are resolved #115
1314
ServicePointManager.ServerCertificateValidationCallback = (s, certificate, chain, sslPolicyErrors) => true;
14-
15+
Encoding = Encoding.UTF8;
1516
Timeout = 2000;
1617
Headers.Add("Origin", "https://embed.spotify.com");
1718
Headers.Add("Referer", "https://embed.spotify.com/?uri=spotify:track:5Zp4SWOpbuOdnsxLqwgutt");

‎SpotifyAPI/Local/RemoteHandler.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ internal string Query(string request, bool oauth, bool cfid, int wait)
114114
{
115115
if (SpotifyLocalAPI.IsSpotifyRunning())
116116
{
117-
wc.Encoding = Encoding.UTF8;
118117
response = "[ " + wc.DownloadString(address) + " ]";
119118
}
120119
}

0 commit comments

Comments
 (0)