mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-20 05:18:17 +08:00
hacking around to get a POST acceptance test working, doesnt really mean anything tbh
This commit is contained in:
@ -33,7 +33,14 @@ namespace Ocelot.AcceptanceTests.Fake
|
||||
{
|
||||
app.Run(async context =>
|
||||
{
|
||||
await context.Response.WriteAsync("Hello from Laura");
|
||||
if (context.Request.Method.ToLower() == "get")
|
||||
{
|
||||
await context.Response.WriteAsync("Hello from Laura");
|
||||
}
|
||||
else
|
||||
{
|
||||
context.Response.StatusCode = 201;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user