authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-08-18 22:35:14 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-08-18 22:35:14 -07:00
log6edd0ab98275d2e97575afe958214027744b41d4
tree6cb79d40dbc1e91890a16133ebc0155e00af499a
parentb0dbc36aa97d59a036fbaefbe16858043492146d

alphabetize


1 files changed, 6 insertions(+), 6 deletions(-)

mime.zig+6-6
......@@ -2,6 +2,9 @@ const std = @import("std");
22const string = []const u8;
33
44const types = std.ComptimeStringMap(string, .{
5 .{ ".3g2", "video/3gpp2" },
6 .{ ".3gp", "video/3gpp" },
7 .{ ".7z", "application/x-7z-compressed" },
58 .{ ".aac", "audio/aac" },
69 .{ ".abw", "application/x-abiword" },
710 .{ ".arc", "application/x-freearc" },
......@@ -19,15 +22,15 @@ const types = std.ComptimeStringMap(string, .{
1922 .{ ".docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document" },
2023 .{ ".eot", "application/vnd.ms-fontobject" },
2124 .{ ".epub", "application/epub+zip" },
22 .{ ".gz", "application/gzip" },
2325 .{ ".gif", "image/gif" },
26 .{ ".gz", "application/gzip" },
2427 .{ ".htm", "text/html" },
2528 .{ ".html", "text/html" },
2629 .{ ".ico", "image/vnd.microsoft.icon" },
2730 .{ ".ics", "text/calendar" },
2831 .{ ".jar", "application/java-archive" },
29 .{ ".jpg", "image/jpeg" },
3032 .{ ".jpeg", "image/jpeg" },
33 .{ ".jpg", "image/jpeg" },
3134 .{ ".js", "application/javascript" },
3235 .{ ".json", "application/json" },
3336 .{ ".jsonld", "application/ld+json" },
......@@ -45,9 +48,9 @@ const types = std.ComptimeStringMap(string, .{
4548 .{ ".ogx", "application/ogg" },
4649 .{ ".opus", "audio/opus" },
4750 .{ ".otf", "font/otf" },
48 .{ ".png", "image/png" },
4951 .{ ".pdf", "application/pdf" },
5052 .{ ".php", "application/x-httpd-php" },
53 .{ ".png", "image/png" },
5154 .{ ".ppt", "application/vnd.ms-powerpoint" },
5255 .{ ".pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation" },
5356 .{ ".rar", "application/vnd.rar" },
......@@ -73,9 +76,6 @@ const types = std.ComptimeStringMap(string, .{
7376 .{ ".xml", "application/xml" },
7477 .{ ".xul", "application/vnd.mozilla.xul+xml" },
7578 .{ ".zip", "application/zip" },
76 .{ ".3gp", "video/3gpp" },
77 .{ ".3g2", "video/3gpp2" },
78 .{ ".7z", "application/x-7z-compressed" },
7979});
8080
8181pub fn typeByExtension(comptime ext: string) ?string {