mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 19:27:31 +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();
|
var req = base.CreateWebRequest();
|
||||||
req.Method = HttpMethod.Put;
|
req.Method = HttpMethod.Put;
|
||||||
|
req.AddParameter(@"password", Password, RequestParameterType.Query);
|
||||||
return req;
|
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}";
|
||||||
protected override string Target => $"rooms/{Room.RoomID.Value}/users/{User.Id}?password={Password}";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user