mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-21 00:39:32 +00:00
Fix HttpTable.contains
argument requirements.
This commit is contained in:
parent
eb6e32605f
commit
72151b99cc
@ -67,7 +67,7 @@ proc set*(ht: var HttpTables, key: string, value: string) =
|
|||||||
let lowkey = key.toLowerAscii()
|
let lowkey = key.toLowerAscii()
|
||||||
ht.table[lowkey] = @[value]
|
ht.table[lowkey] = @[value]
|
||||||
|
|
||||||
proc contains*(ht: var HttpTables, key: string): bool =
|
proc contains*(ht: HttpTables, key: string): bool =
|
||||||
## Returns ``true`` if header with name ``key`` is present in HttpTable/Ref.
|
## Returns ``true`` if header with name ``key`` is present in HttpTable/Ref.
|
||||||
ht.table.contains(key.toLowerAscii())
|
ht.table.contains(key.toLowerAscii())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user