mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
Fixed Query and QueryAsync methods (#212)
This commit is contained in:
parent
5ccef6fd14
commit
b1365a6fea
@ -131,7 +131,7 @@ namespace SpotifyAPI.Local
|
||||
internal string Query(string baseUrl, bool oauth, bool cfid, int wait, NameValueCollection @params = null)
|
||||
{
|
||||
string parameters = BuildQueryString(oauth, cfid, wait, @params);
|
||||
string address = $"{_config.HostUrl}:{_config.Port}/{baseUrl}{parameters}";
|
||||
string address = $"{_config.HostUrl}:{_config.Port}/{baseUrl}?{parameters}";
|
||||
string response = string.Empty;
|
||||
try
|
||||
{
|
||||
@ -154,7 +154,7 @@ namespace SpotifyAPI.Local
|
||||
internal async Task<string> QueryAsync(string baseUrl, bool oauth, bool cfid, int wait, NameValueCollection @params = null)
|
||||
{
|
||||
string parameters = BuildQueryString(oauth, cfid, wait, @params);
|
||||
string address = $"{_config.HostUrl}:{_config.Port}/{baseUrl}{parameters}";
|
||||
string address = $"{_config.HostUrl}:{_config.Port}/{baseUrl}?{parameters}";
|
||||
string response = "";
|
||||
try
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user