mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-02-20 15:08:13 +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()
|
||||
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.
|
||||
ht.table.contains(key.toLowerAscii())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user