From 868531d239ae31ddec1eaac6e181b42e189bf3fc Mon Sep 17 00:00:00 2001 From: Cecilia Avila <44245136+ceciliaavila@users.noreply.github.com> Date: Tue, 23 May 2023 16:58:41 -0300 Subject: [PATCH] allow send GET requests with body (#6633) Co-authored-by: JhontSouth --- .../Actions/HttpRequest.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/HttpRequest.cs b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/HttpRequest.cs index 3ae4387733..2e4292bb36 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/HttpRequest.cs +++ b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/HttpRequest.cs @@ -289,6 +289,7 @@ public enum HttpMethod case HttpMethod.POST: case HttpMethod.PATCH: case HttpMethod.PUT: + case HttpMethod.GET: if (instanceBody == null) { response = await client.SendAsync(request, cancellationToken).ConfigureAwait(false); @@ -314,9 +315,7 @@ public enum HttpMethod } break; - - case HttpMethod.DELETE: - case HttpMethod.GET: + case HttpMethod.DELETE: response = await client.SendAsync(request, cancellationToken).ConfigureAwait(false); break; }