mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Fix request failing due to parameters
This commit is contained in:
@ -22,13 +22,10 @@ namespace osu.Game.Online.Rooms
|
||||
{
|
||||
var req = base.CreateWebRequest();
|
||||
req.Method = HttpMethod.Put;
|
||||
|
||||
if (!string.IsNullOrEmpty(Password))
|
||||
req.AddParameter("password", Password);
|
||||
|
||||
return req;
|
||||
}
|
||||
|
||||
protected override string Target => $"rooms/{Room.RoomID.Value}/users/{User.Id}";
|
||||
// Todo: Password needs to be specified here rather than via AddParameter() because this is a PUT request. May be a framework bug.
|
||||
protected override string Target => $"rooms/{Room.RoomID.Value}/users/{User.Id}?password={Password}";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user