From 62f184df43e437041359408ea2ace94d5c76c94c Mon Sep 17 00:00:00 2001 From: Matthias Sebastian Sort Date: Fri, 3 May 2024 14:47:26 +0200 Subject: [PATCH] better lookup for checking if top already exists in the url. --- src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj | 2 +- src/ODataSourceReader.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj index b086fa6..65c1d80 100644 --- a/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj @@ -1,6 +1,6 @@  - 10.0.21 + 10.0.22 1.0.0.0 OData Provider The Odata Provider lets you fetch and map data from or to any OData endpoint. diff --git a/src/ODataSourceReader.cs b/src/ODataSourceReader.cs index f08e03c..613e9b3 100644 --- a/src/ODataSourceReader.cs +++ b/src/ODataSourceReader.cs @@ -660,7 +660,7 @@ private bool CheckIfEndpointIsReadyForUse(string url) string checkUrl = url; if (url.Contains("?")) { - bool urlContainsTop = url.Contains("&$top=", StringComparison.OrdinalIgnoreCase); + bool urlContainsTop = url.Contains("$top=", StringComparison.OrdinalIgnoreCase); if (new Uri(url).Query.Any() && !urlContainsTop) { checkUrl += "&$top=1";