mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Fix room password not being percent-encoded in join request
This commit is contained in:
parent
3392086d1c
commit
6dbdfcc70c
@ -22,10 +22,10 @@ namespace osu.Game.Online.Rooms
|
||||
{
|
||||
var req = base.CreateWebRequest();
|
||||
req.Method = HttpMethod.Put;
|
||||
req.AddParameter(@"password", Password, RequestParameterType.Query);
|
||||
return req;
|
||||
}
|
||||
|
||||
// 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}";
|
||||
protected override string Target => $@"rooms/{Room.RoomID.Value}/users/{User.Id}";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user