1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Fix web request failing if password is null

This commit is contained in:
smoogipoo 2021-07-19 20:55:25 +09:00
parent 05295241b8
commit a001e4aa16

View File

@ -22,7 +22,10 @@ namespace osu.Game.Online.Rooms
{
var req = base.CreateWebRequest();
req.Method = HttpMethod.Put;
req.AddParameter("password", Password);
if (!string.IsNullOrEmpty(Password))
req.AddParameter("password", Password);
return req;
}