mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Rename MapContentType to ProgramContentType (#570)
This commit is contained in:
parent
d2cec808dc
commit
164e2ab27b
3 changed files with 13 additions and 13 deletions
|
@ -22,11 +22,11 @@ assert("\e" == "\x1b")
|
|||
assert("hi" * 3 == "hihihi")
|
||||
assert("hello %d" % {123} == "hello 123")
|
||||
|
||||
-- test MapContentType
|
||||
assert(MapContentType("txt") == "text/plain")
|
||||
assert(MapContentType("htm") == "text/html")
|
||||
assert(MapContentType("abc.htm") == "text/html")
|
||||
assert(MapContentType("1") == nil)
|
||||
MapContentType("1", "text/x-foo")
|
||||
assert(MapContentType("1"), "text/x-foo")
|
||||
assert(MapContentType("file.1"), "text/x-foo")
|
||||
-- test ProgramContentType
|
||||
assert(ProgramContentType("txt") == "text/plain")
|
||||
assert(ProgramContentType("htm") == "text/html")
|
||||
assert(ProgramContentType("abc.htm") == "text/html")
|
||||
assert(ProgramContentType("1") == nil)
|
||||
ProgramContentType("1", "text/x-foo")
|
||||
assert(ProgramContentType("1"), "text/x-foo")
|
||||
assert(ProgramContentType("file.1"), "text/x-foo")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue