Skip to content

Commit

Permalink
fix: Microsoft.AspNetCore.Mvc.Testing RedirectHandler HasBody is miss…
Browse files Browse the repository at this point in the history
…ing PATCH (#58269)
  • Loading branch information
whoaskedfrfr authored Oct 9, 2024
1 parent 8dfc19c commit 80ac2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mvc/Mvc.Testing/src/Handlers/RedirectHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
}

private static bool HasBody(HttpRequestMessage request) =>
request.Method == HttpMethod.Post || request.Method == HttpMethod.Put;
request.Method == HttpMethod.Post || request.Method == HttpMethod.Put || request.Method == HttpMethod.Patch;

private static async Task<HttpContent?> DuplicateRequestContent(HttpRequestMessage request)
{
Expand Down

0 comments on commit 80ac2ff

Please sign in to comment.