diff options
author | 2022-02-20 16:23:41 -0800 | |
---|---|---|
committer | 2022-02-20 16:23:41 -0800 | |
commit | 1ecd66e55d686a7e996841cabc4cd2f92633eaea (patch) | |
tree | 0552fad2f608753a79521f5479aeb73aa1dd632d /src | |
parent | 06ac065d4d073687c6f10bcbf51de21335d1ac44 (diff) | |
download | bun-1ecd66e55d686a7e996841cabc4cd2f92633eaea.tar.gz bun-1ecd66e55d686a7e996841cabc4cd2f92633eaea.tar.zst bun-1ecd66e55d686a7e996841cabc4cd2f92633eaea.zip |
Update mime_type.zig
Diffstat (limited to 'src')
-rw-r--r-- | src/http/mime_type.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/mime_type.zig b/src/http/mime_type.zig index 743560931..5e9c36b7b 100644 --- a/src/http/mime_type.zig +++ b/src/http/mime_type.zig @@ -119,6 +119,10 @@ pub fn init(str_: string) MimeType { if (strings.eqlComptime(str, "javascript")) { return javascript; } + + if (strings.eqlComptime(str, "plain")) { + return MimeType{ .value = "text/plain", .category = .text }; + } } }, "image".len => { |