Skip to content

Commit 30eab16

Browse files
committed
Added very first of many redirection cookie tests.
1 parent 00b718e commit 30eab16

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/RestSharp.Tests.Integrated/Server/TestServer.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ public HttpServer(ITestOutputHelper? output = null) {
5252
}
5353
);
5454

55+
_app.MapPost(
56+
"/post/set-cookie-redirect",
57+
(HttpContext ctx) => {
58+
ctx.Response.Cookies.Append("redirectCookie", "value1");
59+
return Results.Redirect("/get-cookies", permanent: false, preserveMethod: false);
60+
});
61+
5562
// PUT
5663
_app.MapPut(
5764
ContentResource,

0 commit comments

Comments
 (0)