We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34cfdce commit 4973130Copy full SHA for 4973130
src/ScryfallApi.Client/Apis/BaseRestService.cs
@@ -14,6 +14,8 @@ internal sealed class BaseRestService
14
public BaseRestService(HttpClient httpClient, ScryfallApiClientConfig clientConfig, IMemoryCache cache)
15
{
16
_httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
17
+ if (_httpClient.BaseAddress is null)
18
+ _httpClient.BaseAddress = clientConfig.ScryfallApiBaseAddress;
19
_clientConfig = clientConfig;
20
_cache = cache;
21
0 commit comments