From b1365a6fea53aebcea478e7f6fb2aa52d2f78321 Mon Sep 17 00:00:00 2001 From: Alessandro Attard Barbini <11708634+aleab@users.noreply.github.com> Date: Mon, 15 Jan 2018 23:05:58 +0100 Subject: [PATCH] Fixed Query and QueryAsync methods (#212) --- SpotifyAPI/Local/RemoteHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpotifyAPI/Local/RemoteHandler.cs b/SpotifyAPI/Local/RemoteHandler.cs index 82ede80a..da8cc362 100644 --- a/SpotifyAPI/Local/RemoteHandler.cs +++ b/SpotifyAPI/Local/RemoteHandler.cs @@ -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 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 {