Skip to content

Commit b1365a6

Browse files
aleabJohnnyCrazy
authored andcommitted
Fixed Query and QueryAsync methods (#212)
1 parent 5ccef6f commit b1365a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SpotifyAPI/Local/RemoteHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ internal string BuildQueryString(bool oauth, bool cfid, int wait, NameValueColle
131131
internal string Query(string baseUrl, bool oauth, bool cfid, int wait, NameValueCollection @params = null)
132132
{
133133
string parameters = BuildQueryString(oauth, cfid, wait, @params);
134-
string address = $"{_config.HostUrl}:{_config.Port}/{baseUrl}{parameters}";
134+
string address = $"{_config.HostUrl}:{_config.Port}/{baseUrl}?{parameters}";
135135
string response = string.Empty;
136136
try
137137
{
@@ -154,7 +154,7 @@ internal string Query(string baseUrl, bool oauth, bool cfid, int wait, NameValue
154154
internal async Task<string> QueryAsync(string baseUrl, bool oauth, bool cfid, int wait, NameValueCollection @params = null)
155155
{
156156
string parameters = BuildQueryString(oauth, cfid, wait, @params);
157-
string address = $"{_config.HostUrl}:{_config.Port}/{baseUrl}{parameters}";
157+
string address = $"{_config.HostUrl}:{_config.Port}/{baseUrl}?{parameters}";
158158
string response = "";
159159
try
160160
{

0 commit comments

Comments
 (0)