0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

modules/index: Add magic extension fallback for .wasm application/wasm.

This commit is contained in:
Jason Volk 2019-06-29 00:22:35 -07:00
parent 1636fd795d
commit 75884a41c6

View file

@ -250,6 +250,7 @@ content_type(const mutable_buffer &out,
{ {
case hash("css"): content_type = "text/css; charset=utf-8"; break; case hash("css"): content_type = "text/css; charset=utf-8"; break;
case hash("js"): content_type = "application/javascript; charset=utf-8"; break; case hash("js"): content_type = "application/javascript; charset=utf-8"; break;
case hash("wasm"): content_type = "application/wasm"; break;
case hash("html"): content_type = "text/html; charset=utf-8"; break; case hash("html"): content_type = "text/html; charset=utf-8"; break;
case hash("ico"): content_type = "image/x-icon"; break; case hash("ico"): content_type = "image/x-icon"; break;
case hash("svg"): content_type = "image/svg+xml"; break; case hash("svg"): content_type = "image/svg+xml"; break;