diff options
author | Bung <crc32@qq.com> | 2024-01-19 20:11:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 13:11:01 +0100 |
commit | 01097fc1fc70d5c7ce38108d7773e5533fb3743b (patch) | |
tree | 08b25d426e4840f6873270db4272546e2691377b /tests/stdlib | |
parent | 38f9ee0e5850ac9987fe612edcf48cddd1835091 (diff) | |
download | Nim-01097fc1fc70d5c7ce38108d7773e5533fb3743b.tar.gz |
fix mime types data (#23226)
generated via https://github.com/bung87/mimetypes_gen source data: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=co
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tmimetypes.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/stdlib/tmimetypes.nim b/tests/stdlib/tmimetypes.nim index e332cea40..372a8f3d8 100644 --- a/tests/stdlib/tmimetypes.nim +++ b/tests/stdlib/tmimetypes.nim @@ -11,8 +11,11 @@ template main() = var m = newMimetypes() doAssert m.getMimetype("mp4") == "video/mp4" doAssert m.getExt("application/json") == "json" + doAssert m.getMimetype("json") == "application/json" m.register("foo", "baa") doAssert m.getMimetype("foo") == "baa" + doAssert m.getMimetype("txt") == "text/plain" + doAssert m.getExt("text/plain") == "txt" # see also `runnableExamples`. # xxx we should have a way to avoid duplicating code between runnableExamples and tests |