Fix user agent missing in registration

This commit is contained in:
Dean Herbert
2020-01-16 12:51:43 +09:00
parent ef735f106e
commit 0d8b4e7c3e
3 changed files with 22 additions and 12 deletions

View File

@ -162,16 +162,6 @@ namespace osu.Game.Online.API
[JsonProperty("error")]
public string ErrorMessage { get; set; }
}
private class OsuWebRequest : WebRequest
{
public OsuWebRequest(string uri)
: base(uri)
{
}
protected override string UserAgent => "osu!";
}
}
public class APIException : InvalidOperationException