Skip to content

Commit 0b2b814

Browse files
author
PJB3005
committed
Specify charset=utf-8 for manifest responses
Otherwise browsers and tools may guess the wrong encoding.
1 parent d1f6123 commit 0b2b814

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Robust.Cdn/Controllers/ForkDownloadController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ FROM ContentVersion CV
6262
{
6363
Response.Headers.ContentEncoding = "zstd";
6464

65-
return File(blob, "text/plain");
65+
return File(blob, "text/plain; charset=utf-8");
6666
}
6767

6868
var decompress = new ZstdDecodeStream(blob, leaveOpen: false);
6969

70-
return File(decompress, "text/plain");
70+
return File(decompress, "text/plain; charset=utf-8");
7171
}
7272

7373
[HttpOptions("download")]

0 commit comments

Comments
 (0)