fixes #4278
This commit is contained in:
parent
03b64327ca
commit
487bf54cdf
1 changed files with 2 additions and 2 deletions
|
|
@ -94,8 +94,8 @@ converter toString*(values: HttpHeaderValues): string =
|
||||||
return seq[string](values)[0]
|
return seq[string](values)[0]
|
||||||
|
|
||||||
proc `[]`*(headers: HttpHeaders, key: string, i: int): string =
|
proc `[]`*(headers: HttpHeaders, key: string, i: int): string =
|
||||||
## Returns the ``i``th value associated with the given key. If there are
|
## Returns the ``i``'th value associated with the given key. If there are
|
||||||
## no values associated with the key or the ``i``th value doesn't exist,
|
## no values associated with the key or the ``i``'th value doesn't exist,
|
||||||
## an exception is raised.
|
## an exception is raised.
|
||||||
return headers.table[key.toLower][i]
|
return headers.table[key.toLower][i]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue