add gzip type to support gziped wfa js
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
// defines mime type and associated minifier
|
||||
type MimeType struct {
|
||||
Type string
|
||||
Encoding string
|
||||
Minifier func(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error
|
||||
}
|
||||
|
||||
@@ -44,6 +45,11 @@ var MimeTypes = map[string]MimeType{
|
||||
Type: "application/wasm",
|
||||
Minifier: nil,
|
||||
},
|
||||
"gz": {
|
||||
Type: "application/wasm",
|
||||
Encoding: "gzip",
|
||||
Minifier: nil,
|
||||
},
|
||||
"*": {
|
||||
Type: "text/plain",
|
||||
Minifier: nil,
|
||||
|
||||
@@ -15,6 +15,7 @@ import (
|
||||
// defines mime type and associated minifier
|
||||
type MimeType struct {
|
||||
Type string
|
||||
Encoding string
|
||||
Minifier func(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error
|
||||
}
|
||||
|
||||
@@ -48,6 +49,11 @@ var MimeTypes = map[string]MimeType{
|
||||
Type: "application/wasm",
|
||||
Minifier: nil,
|
||||
},
|
||||
"gz": {
|
||||
Type: "application/wasm",
|
||||
Encoding: "gzip",
|
||||
Minifier: nil,
|
||||
},
|
||||
"*": {
|
||||
Type: "text/plain",
|
||||
Minifier: nil,
|
||||
|
||||
Reference in New Issue
Block a user