mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-18 23:49:09 +00:00
Add WASM as known media type.
This commit is contained in:
parent
9bc6502fa7
commit
68683eb0a9
@ -27,6 +27,7 @@ macro_rules! known_media_types {
|
||||
WOFF (is_woff): "WOFF", "application", "font-woff",
|
||||
WOFF2 (is_woff2): "WOFF2", "font", "woff2",
|
||||
JsonApi (is_json_api): "JSON API", "application", "vnd.api+json",
|
||||
WASM (is_wasm): "WASM", "application", "wasm",
|
||||
})
|
||||
}
|
||||
|
||||
@ -55,6 +56,7 @@ macro_rules! known_extensions {
|
||||
"otf" => OTF,
|
||||
"woff" => WOFF,
|
||||
"woff2" => WOFF2,
|
||||
"wasm" => WASM,
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user