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:
parent
551225d888
commit
cda77c1520
3 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue