From 300944c355ce63efacf8f0a686fff8d6dcbb9e2c Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 14 Dec 2023 14:33:28 +0100 Subject: config: do not override user-defined urimethodmap UMM resolution takes the first entry. --- src/types/urimethodmap.nim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/types') diff --git a/src/types/urimethodmap.nim b/src/types/urimethodmap.nim index f9331cfd..48163668 100644 --- a/src/types/urimethodmap.nim +++ b/src/types/urimethodmap.nim @@ -73,3 +73,7 @@ proc parseURIMethodMap*(this: var URIMethodMap, s: string) = proc parseURIMethodMap*(s: string): URIMethodMap = result = URIMethodMap() result.parseURIMethodMap(s) + +proc append*(this: var URIMethodMap, that: URIMethodMap) = + for k, v in that.map: + discard this.map.hasKeyOrPut(k, v) -- cgit