Skip to content

Commit 4f96154

Browse files
committed
Add more self-tests for extension lookups
(Check for one of the first and one of the last extensions.)
1 parent 12a77f5 commit 4f96154

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/lwan-tables.c

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ void lwan_tables_init(void)
106106
"text/javascript"));
107107
assert(streq(lwan_determine_mime_type_for_file_name(".BZ2"),
108108
"application/x-bzip2"));
109+
assert(streq(lwan_determine_mime_type_for_file_name(".z1"),
110+
"application/x-zmachine"));
111+
assert(streq(lwan_determine_mime_type_for_file_name(".asm"),
112+
"text/x-asm"));
109113
}
110114

111115
LWAN_SELF_TEST(status_codes)

0 commit comments

Comments
 (0)