mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 23:16:28 +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)
|
internal string Query(string baseUrl, bool oauth, bool cfid, int wait, NameValueCollection @params = null)
|
||||||
{
|
{
|
||||||
string parameters = BuildQueryString(oauth, cfid, wait, @params);
|
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;
|
string response = string.Empty;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -154,7 +154,7 @@ namespace SpotifyAPI.Local
|
|||||||
internal async Task<string> QueryAsync(string baseUrl, bool oauth, bool cfid, int wait, NameValueCollection @params = null)
|
internal async Task<string> QueryAsync(string baseUrl, bool oauth, bool cfid, int wait, NameValueCollection @params = null)
|
||||||
{
|
{
|
||||||
string parameters = BuildQueryString(oauth, cfid, wait, @params);
|
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 response = "";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user