Skip to content

Commit

Permalink
add application/wasm mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jun 16, 2021
1 parent 938484d commit 2887efa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion mime-parse/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ impl Atoms {
if sub == JSON {
return Atoms::APPLICATION_JSON;
}
if sub == WASM {
return Atoms::APPLICATION_WASM;
}
},
7 => {
if sub == MSGPACK {
Expand Down Expand Up @@ -406,6 +409,7 @@ names! {
MSGPACK, "msgpack";
OCTET_STREAM, "octet-stream";
PDF, "pdf";
WASM, "wasm";

// common font/*
WOFF, "woff";
Expand Down Expand Up @@ -466,6 +470,7 @@ mimes! {
APPLICATION_MSGPACK, "application/msgpack", 11;
APPLICATION_PDF, "application/pdf", 11;
APPLICATION_DNS, "application/dns-message", 11;
APPLICATION_WASM, "application/wasm", 11;

// media-ranges
//@ MediaRange:
Expand All @@ -475,4 +480,3 @@ mimes! {
VIDEO_STAR, "video/*", 5;
AUDIO_STAR, "audio/*", 5;
}

2 changes: 1 addition & 1 deletion src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ mimes! {
APPLICATION_MSGPACK, "application/msgpack";
APPLICATION_PDF, "application/pdf";
APPLICATION_DNS, "application/dns-message";
APPLICATION_WASM, "application/wasm";

// media-ranges
@ MediaRange:
Expand All @@ -118,4 +119,3 @@ mimes! {
VIDEO_STAR, "video/*";
AUDIO_STAR, "audio/*";
}

0 comments on commit 2887efa

Please sign in to comment.