change mimedb stroe stringtable to orderedtable (#18065)
* change mimedb stroe stringtable to orderedtable * Update lib/pure/mimetypes.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
2ec52faae5
commit
429b128632
2 changed files with 5 additions and 3 deletions
|
|
@ -6,6 +6,7 @@ import std/mimetypes
|
|||
template main() =
|
||||
var m = newMimetypes()
|
||||
doAssert m.getMimetype("mp4") == "video/mp4"
|
||||
doAssert m.getExt("application/json") == "json"
|
||||
# see also `runnableExamples`.
|
||||
# xxx we should have a way to avoid duplicating code between runnableExamples and tests
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue