Skip to content

Commit 7357cc7

Browse files
guardrexMihaZupan
andauthored
Update aspnetcore/fundamentals/servers/yarp/extensibility-transforms.md
Co-authored-by: Miha Zupan <[email protected]>
1 parent 49ccd2b commit 7357cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/fundamentals/servers/yarp/extensibility-transforms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public class AddRequestBodyMiddleware
8888
public async Task InvokeAsync(HttpContext context)
8989
{
9090
// Only modify specific route and method
91-
if (context.Request.Method == HttpMethods.Post &&
91+
if (context.Request.Method == HttpMethods.Get &&
9292
context.Request.Path == "/special-route")
9393
{
9494
var bodyContent = "key=value";

0 commit comments

Comments
 (0)