Skip to content

Commit 607c83a

Browse files
committed
Switch add beatmap tag request to using path paramx
See ppy/osu-web#11999.
1 parent 723a221 commit 607c83a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

osu.Game/Online/API/Requests/AddBeatmapTagRequest.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
22
// See the LICENCE file in the repository root for full licence text.
33

4-
using System.Globalization;
54
using System.Net.Http;
65
using osu.Framework.IO.Network;
76

@@ -22,10 +21,9 @@ protected override WebRequest CreateWebRequest()
2221
{
2322
var req = base.CreateWebRequest();
2423
req.Method = HttpMethod.Post;
25-
req.AddParameter(@"tag_id", TagID.ToString(CultureInfo.InvariantCulture), RequestParameterType.Query);
2624
return req;
2725
}
2826

29-
protected override string Target => $@"beatmaps/{BeatmapID}/tags";
27+
protected override string Target => $@"beatmaps/{BeatmapID}/tags/{TagID}";
3028
}
3129
}

0 commit comments

Comments
 (0)