Skip to content

Commit

Permalink
allow send GET requests with body (#6633)
Browse files Browse the repository at this point in the history
Co-authored-by: JhontSouth <jhonatan.sandoval@southworks.com>
  • Loading branch information
ceciliaavila and JhontSouth authored May 23, 2023
1 parent 48084a6 commit 868531d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
Expand Down

0 comments on commit 868531d

Please sign in to comment.