mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
use OrderedTable instead of OrderedTableRef for mimedb (#19522)
* use OrderedTable instead of OrderedTableRef for mimedb Signed-off-by: David Krause <enthus1ast@users.noreply.github.com> * added changelog entry for mimedb change Signed-off-by: David Krause <enthus1ast@users.noreply.github.com>
This commit is contained in:
@@ -7,6 +7,8 @@ template main() =
|
||||
var m = newMimetypes()
|
||||
doAssert m.getMimetype("mp4") == "video/mp4"
|
||||
doAssert m.getExt("application/json") == "json"
|
||||
m.register("foo", "baa")
|
||||
doAssert m.getMimetype("foo") == "baa"
|
||||
# see also `runnableExamples`.
|
||||
# xxx we should have a way to avoid duplicating code between runnableExamples and tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user