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:
parent
05295241b8
commit
a001e4aa16
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user