Skip to content

Commit

Permalink
Constructor on ServerJarsExt missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tekgator committed Dec 25, 2022
1 parent eb0b992 commit 1581bec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
## [Unreleased]


## [1.2.1] - 2022-12-25
### Fixed
- Constructor on ServerJarsExt missing


## [1.2.0] - 2022-12-25
### Added
- Add UserAgent to HTTP client if not already set by the calling assembly
Expand Down
8 changes: 8 additions & 0 deletions ServerJars/ServerJarsExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ namespace ServerJarsAPI;
/// </summary>
public class ServerJarsExt : ServerJars
{
public ServerJarsExt() :
this(new HttpClient())
{ }

public ServerJarsExt(HttpClient httpClient, bool disposeClient = true) :
base(httpClient, disposeClient)
{ }

public new async Task<Dictionary<string, IEnumerable<string>>> GetTypes(
string type = "",
CancellationToken cancellationToken = default)
Expand Down

0 comments on commit 1581bec

Please sign in to comment.