Skip to content

Commit 2887efa

Browse files
committed
add application/wasm mime type
closes hyperium#98
1 parent 938484d commit 2887efa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

mime-parse/src/constants.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ impl Atoms {
310310
if sub == JSON {
311311
return Atoms::APPLICATION_JSON;
312312
}
313+
if sub == WASM {
314+
return Atoms::APPLICATION_WASM;
315+
}
313316
},
314317
7 => {
315318
if sub == MSGPACK {
@@ -406,6 +409,7 @@ names! {
406409
MSGPACK, "msgpack";
407410
OCTET_STREAM, "octet-stream";
408411
PDF, "pdf";
412+
WASM, "wasm";
409413

410414
// common font/*
411415
WOFF, "woff";
@@ -466,6 +470,7 @@ mimes! {
466470
APPLICATION_MSGPACK, "application/msgpack", 11;
467471
APPLICATION_PDF, "application/pdf", 11;
468472
APPLICATION_DNS, "application/dns-message", 11;
473+
APPLICATION_WASM, "application/wasm", 11;
469474

470475
// media-ranges
471476
//@ MediaRange:
@@ -475,4 +480,3 @@ mimes! {
475480
VIDEO_STAR, "video/*", 5;
476481
AUDIO_STAR, "audio/*", 5;
477482
}
478-

src/constants.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ mimes! {
109109
APPLICATION_MSGPACK, "application/msgpack";
110110
APPLICATION_PDF, "application/pdf";
111111
APPLICATION_DNS, "application/dns-message";
112+
APPLICATION_WASM, "application/wasm";
112113

113114
// media-ranges
114115
@ MediaRange:
@@ -118,4 +119,3 @@ mimes! {
118119
VIDEO_STAR, "video/*";
119120
AUDIO_STAR, "audio/*";
120121
}
121-

0 commit comments

Comments
 (0)