From e87ed2e0ee714631df363e80f5578a39f03a59c1 Mon Sep 17 00:00:00 2001 From: raman-m Date: Fri, 27 Oct 2023 23:15:40 +0300 Subject: [PATCH] Fix warnings --- .../Middleware/DownstreamUrlCreatorMiddleware.cs | 2 -- test/Ocelot.AcceptanceTests/RoutingWithQueryStringTests.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Ocelot/DownstreamUrlCreator/Middleware/DownstreamUrlCreatorMiddleware.cs b/src/Ocelot/DownstreamUrlCreator/Middleware/DownstreamUrlCreatorMiddleware.cs index a03300f17..f2aa661d1 100644 --- a/src/Ocelot/DownstreamUrlCreator/Middleware/DownstreamUrlCreatorMiddleware.cs +++ b/src/Ocelot/DownstreamUrlCreator/Middleware/DownstreamUrlCreatorMiddleware.cs @@ -92,7 +92,6 @@ public async Task Invoke(HttpContext httpContext) await _next.Invoke(httpContext); } - private static string MergeQueryStringsWithoutDuplicateValues(string queryString, string newQueryString) { var queries = HttpUtility.ParseQueryString(queryString); @@ -104,7 +103,6 @@ private static string MergeQueryStringsWithoutDuplicateValues(string queryString if (!string.IsNullOrEmpty(key)) { dict.Add(key, newQueries[key]); - } } diff --git a/test/Ocelot.AcceptanceTests/RoutingWithQueryStringTests.cs b/test/Ocelot.AcceptanceTests/RoutingWithQueryStringTests.cs index 9621a0996..41be8b4fe 100644 --- a/test/Ocelot.AcceptanceTests/RoutingWithQueryStringTests.cs +++ b/test/Ocelot.AcceptanceTests/RoutingWithQueryStringTests.cs @@ -90,7 +90,6 @@ public void Should_return_response_200_with_query_string_template_different_keys .BDDfy(); } - [Fact] public void Should_return_response_200_with_query_string_template_additional_key() //issue #327 { @@ -129,7 +128,6 @@ public void Should_return_response_200_with_query_string_template_additional_key .BDDfy(); } - [Fact] public void Should_return_response_200_with_odata_query_string() {