mirror of
https://github.com/kataras/iris.git
synced 2026-01-28 06:15:59 +00:00
formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
This commit is contained in:
@@ -581,7 +581,6 @@ func TypeByExtension(ext string) (typ string) {
|
||||
|
||||
// mime.TypeByExtension returns as text/plain; | charset=utf-8 the static .js (not always)
|
||||
if ext == ".js" && (typ == "text/plain" || typ == "text/plain; charset=utf-8") {
|
||||
|
||||
if ext == ".js" {
|
||||
typ = "application/javascript"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user