mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-20 04:42:57 +00:00
Fix for credentials reading from file, adjusted client options base adress to always end on a /
This commit is contained in:
@@ -76,10 +76,22 @@ namespace CryptoExchange.Net.Objects
|
||||
/// </summary>
|
||||
public class ClientOptions : BaseOptions
|
||||
{
|
||||
private string _baseAddress;
|
||||
|
||||
/// <summary>
|
||||
/// The base address of the client
|
||||
/// </summary>
|
||||
public string BaseAddress { get; set; }
|
||||
public string BaseAddress
|
||||
{
|
||||
get => _baseAddress;
|
||||
set
|
||||
{
|
||||
var newValue = value;
|
||||
if (!newValue.EndsWith("/"))
|
||||
newValue += "/";
|
||||
_baseAddress = newValue;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The api credentials
|
||||
|
||||
Reference in New Issue
Block a user