Fixed Query and QueryAsync methods (#212)

This commit is contained in:
Alessandro Attard Barbini 2018-01-15 23:05:58 +01:00 committed by Jonas Dellinger
parent 5ccef6fd14
commit b1365a6fea

View File

@ -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
{