support UTF-8, show no English Text (#625)
هذا الالتزام موجود في:
@@ -30,7 +30,7 @@ func RawFile(ctx *context.Context) error {
|
|||||||
if file.MimeType.CanBeEmbedded() {
|
if file.MimeType.CanBeEmbedded() {
|
||||||
ctx.Response().Header().Set("Content-Type", file.MimeType.ContentType)
|
ctx.Response().Header().Set("Content-Type", file.MimeType.ContentType)
|
||||||
} else if file.MimeType.IsText() {
|
} else if file.MimeType.IsText() {
|
||||||
ctx.Response().Header().Set("Content-Type", "text/plain")
|
ctx.Response().Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||||
} else {
|
} else {
|
||||||
ctx.Response().Header().Set("Content-Type", "application/octet-stream")
|
ctx.Response().Header().Set("Content-Type", "application/octet-stream")
|
||||||
}
|
}
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم