mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 13:35:37 +08:00
Merge branch 'master' into update-packages
This commit is contained in:
commit
f015b2b63c
@ -59,7 +59,7 @@ namespace osu.Game.Online.API.Requests
|
|||||||
SearchPlayed played = SearchPlayed.Any,
|
SearchPlayed played = SearchPlayed.Any,
|
||||||
SearchExplicit explicitContent = SearchExplicit.Hide)
|
SearchExplicit explicitContent = SearchExplicit.Hide)
|
||||||
{
|
{
|
||||||
this.query = string.IsNullOrEmpty(query) ? string.Empty : System.Uri.EscapeDataString(query);
|
this.query = query;
|
||||||
this.ruleset = ruleset;
|
this.ruleset = ruleset;
|
||||||
this.cursor = cursor;
|
this.cursor = cursor;
|
||||||
|
|
||||||
@ -78,7 +78,9 @@ namespace osu.Game.Online.API.Requests
|
|||||||
protected override WebRequest CreateWebRequest()
|
protected override WebRequest CreateWebRequest()
|
||||||
{
|
{
|
||||||
var req = base.CreateWebRequest();
|
var req = base.CreateWebRequest();
|
||||||
req.AddParameter("q", query);
|
|
||||||
|
if (query != null)
|
||||||
|
req.AddParameter("q", query);
|
||||||
|
|
||||||
if (General != null && General.Any())
|
if (General != null && General.Any())
|
||||||
req.AddParameter("c", string.Join('.', General.Select(e => e.ToString().ToLowerInvariant())));
|
req.AddParameter("c", string.Join('.', General.Select(e => e.ToString().ToLowerInvariant())));
|
||||||
|
Loading…
Reference in New Issue
Block a user