fix(BaseHttpClientService): Null-Kontrolle zum Pfad hinzugefügt
This commit is contained in:
@@ -48,10 +48,10 @@ namespace DigitalData.Core.Client
|
||||
uriBuilder.Scheme = scheme;
|
||||
if (port is int portInt)
|
||||
uriBuilder.Port = portInt;
|
||||
uriBuilder.Path = UriCombine(Path, path.Trim(URI_TRIM_CHARS));
|
||||
uriBuilder.Path = UriCombine(Path, path?.Trim(URI_TRIM_CHARS) ?? string.Empty);
|
||||
|
||||
// Add query parameters if provided
|
||||
if (queryParams?.Count > 0)
|
||||
if (queryParams?.Any() ?? false)
|
||||
{
|
||||
var query = HttpUtility.ParseQueryString(uriBuilder.Query);
|
||||
foreach (var param in queryParams)
|
||||
|
||||
Reference in New Issue
Block a user