We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3576e40 commit c737df8Copy full SHA for c737df8
1 file changed
src/path_handlers.cpp
@@ -2427,6 +2427,18 @@ limhamn::http::server::response ff::handle_api_stay_logged_in(const limhamn::htt
2427
.same_site = "Strict",
2428
.path = "/",
2429
});
2430
+ for (const auto& it : request.cookies) {
2431
+ if (it.name == "username" || it.name == "user_type") {
2432
+ response.cookies.push_back(limhamn::http::server::cookie{
2433
+ .name = it.name,
2434
+ .expires = expires,
2435
+ .value = it.value,
2436
+ .http_only = true,
2437
+ .same_site = "Strict",
2438
+ .path = "/",
2439
+ });
2440
+ }
2441
2442
2443
response.http_status = 204;
2444
response.body = "";
0 commit comments