diff --git a/HISTORY.md b/HISTORY.md index 3e2d8d774a..b4d7efb75b 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,4 @@ - - -# Changelog +# Changelog ### Looking for free and real-time support? diff --git a/README_FA.md b/README_FA.md index a404a58e54..69bc8125ad 100644 --- a/README_FA.md +++ b/README_FA.md @@ -1,5 +1,5 @@
- + ## خبرها > این شاخه تحت توسعه است. برای رفتن به شاخه نسخه بعدی [v12.2.0](HISTORY.md#Next) یا اگر به دنبال یک انتشار پایدار هستید, به جای آن به شاخه [v12.1.8 branch](https://github.com/kataras/iris/tree/v12.1.8) مراجعه کنید. @@ -8,7 +8,7 @@ > با توجه به بالا بودن حجم کار، ممکن است در پاسخ به [سوالات](https://github.com/kataras/iris/issues) شما تاخیری وجود داشته باشد. -# چارچوب وب آیریس +# Iris Web Framework [![build status](https://img.shields.io/github/actions/workflow/status/kataras/iris/ci.yml?branch=master&style=for-the-badge)](https://github.com/kataras/iris/actions/workflows/ci.yml) [![FOSSA Status](https://img.shields.io/badge/LICENSE%20SCAN-PASSING❤️-CD2956?style=for-the-badge&logo=fossa)](https://app.fossa.io/projects/git%2Bgithub.com%2Fkataras%2Firis?ref=badge_shield) [![view examples](https://img.shields.io/badge/learn%20by-examples-0C8EC5.svg?style=for-the-badge&logo=go)](https://github.com/kataras/iris/tree/master/_examples) [![chat](https://img.shields.io/gitter/room/iris_go/community.svg?color=7E18DD&logo=gitter&style=for-the-badge)](https://gitter.im/iris_go/community) diff --git a/README_ZH.md b/README_ZH.md new file mode 100644 index 0000000000..bbb997ac9e --- /dev/null +++ b/README_ZH.md @@ -0,0 +1,5 @@ +# Iris Web Framework + + [Traditional Chinese (zht / zh-Hant)](README_ZH_HANT.md) + + [Simplified Chinese (zhs / zh-Hans)](README_ZH_HANS.md) diff --git a/_examples/README.md b/_examples/README.md index 22afea214d..7512cd7bd0 100644 --- a/_examples/README.md +++ b/_examples/README.md @@ -1,4 +1,4 @@ -# Table of Contents +# Table of Contents * [Serverless](https://github.com/iris-contrib/gateway#netlify) * [REST API for Apache Kafka](kafka-api) diff --git a/core/router/mime.go b/core/router/mime.go index b4c21bcd1a..a91ef8e5e4 100644 --- a/core/router/mime.go +++ b/core/router/mime.go @@ -584,7 +584,7 @@ func TypeByExtension(ext string) (typ string) { } // mime.TypeByExtension returns as text/plain; | charset=utf-8 the static .js (not always) - if ext == ".js" && (typ == context.ContentJavascriptHeaderValue || typ == context.ContentTextHeaderValue) { + if ext == ".js" || ext == ".mjs" && (typ == context.ContentJavascriptHeaderValue || typ == context.ContentTextHeaderValue) { typ = context.ContentJavascriptHeaderValue }