kinda horrific download implementation

This commit is contained in:
2024-06-23 19:57:23 +12:00
parent edf0109095
commit 59b702aa15
10 changed files with 286 additions and 126 deletions

View File

@ -82,7 +82,7 @@ pub async fn set(req: Request<Body>) -> Result<Response<Body>, String> {
Some(value) => response.insert_cookie(
Cookie::build((name.to_owned(), value.clone()))
.path("/")
.http_only(true)
.http_only(name != "ffmpeg_video_downloads")
.expires(OffsetDateTime::now_utc() + Duration::weeks(52))
.into(),
),