fix: toujours poser cookie gitea workspace côté serveur
This commit is contained in:
@@ -393,11 +393,8 @@ async def gitea_workspace_page(request: Request):
|
|||||||
"repo": repo,
|
"repo": repo,
|
||||||
}
|
}
|
||||||
template = env.get_template("gitea_workspace.html")
|
template = env.get_template("gitea_workspace.html")
|
||||||
response = template.render(**ctx)
|
resp = HTMLResponse(content=template.render(**ctx))
|
||||||
# Set workspace cookie so subsequent navigations remember the active Gitea project
|
resp.set_cookie("flowdeck_workspace", f"gitea:{owner}:{repo}", path="/", samesite="lax")
|
||||||
resp = HTMLResponse(content=response)
|
|
||||||
if ws_key:
|
|
||||||
resp.set_cookie("flowdeck_workspace", f"gitea:{owner}:{repo}", path="/", samesite="lax")
|
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user