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:
David Krause 2022-02-14 08:56:35 +01:00 • committed by GitHub
commit cda77c1520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -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