Merge branch 'master' into update-packages

This commit is contained in:
Bartłomiej Dach 2021-07-25 11:49:11 +02:00 committed by GitHub
commit f015b2b63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public SearchBeatmapSetsRequest(
SearchPlayed played = SearchPlayed.Any,
SearchExplicit explicitContent = SearchExplicit.Hide)
{
this.query = string.IsNullOrEmpty(query) ? string.Empty : System.Uri.EscapeDataString(query);
this.query = query;
this.ruleset = ruleset;
this.cursor = cursor;
@ -78,7 +78,9 @@ public SearchBeatmapSetsRequest(
protected override WebRequest CreateWebRequest()
{
var req = base.CreateWebRequest();
req.AddParameter("q", query);
if (query != null)
req.AddParameter("q", query);
if (General != null && General.Any())
req.AddParameter("c", string.Join('.', General.Select(e => e.ToString().ToLowerInvariant())));