Fix duplicate '?' in query part of URI (#462)

This commit is contained in:
Calle 2020-06-13 00:27:28 +02:00 committed by GitHub
parent 87127a51a8
commit d7c54ebfcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ namespace SpotifyAPI.Web
}
var queryString = string.Join("&", newParameters.Select((parameter) => $"{parameter.Key}={parameter.Value}"));
var query = string.IsNullOrEmpty(queryString) ? null : $"?{queryString}";
var query = string.IsNullOrEmpty(queryString) ? null : queryString;
var uriBuilder = new UriBuilder(uri)
{