From 6281510a37364891943e4c1b670bc4e584c753e5 Mon Sep 17 00:00:00 2001 From: Jono Rogers Date: Thu, 3 Aug 2017 09:54:57 +0100 Subject: [PATCH] Fix http method being locked to POST --- .../Resilience/Resilience.Http/StandardHttpClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BuildingBlocks/Resilience/Resilience.Http/StandardHttpClient.cs b/src/BuildingBlocks/Resilience/Resilience.Http/StandardHttpClient.cs index 3d5217064d..423fc42bb6 100644 --- a/src/BuildingBlocks/Resilience/Resilience.Http/StandardHttpClient.cs +++ b/src/BuildingBlocks/Resilience/Resilience.Http/StandardHttpClient.cs @@ -43,7 +43,7 @@ private async Task DoPostPutAsync(HttpMethod method, str // a new StringContent must be created for each retry // as it is disposed after each call - var requestMessage = new HttpRequestMessage(HttpMethod.Post, uri); + var requestMessage = new HttpRequestMessage(method, uri); requestMessage.Content = new StringContent(JsonConvert.SerializeObject(item), System.Text.Encoding.UTF8, "application/json");