mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-17 21:12:22 +01:00
fixes #77
This commit is contained in:
parent
1d23df110b
commit
b69277f133
@ -158,6 +158,7 @@ public abstract class BaseDownloadController : Controller
|
||||
Response.Headers.XFrameOptions = "SAMEORIGIN";
|
||||
Response.Headers.ContentDisposition = $"inline; filename=\"{meta?.Metadata?.Name}\"";
|
||||
Response.ContentType = meta?.Metadata?.MimeType ?? "application/octet-stream";
|
||||
Response.ContentLength = (long?)meta?.Metadata?.Size;
|
||||
|
||||
return meta;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user