Fixes httpcore.[]= so that it doesn't convert value to lowercase.
This commit is contained in:
parent
39d802188c
commit
ad91da8342
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ proc `[]`*(headers: HttpHeaders, key: string, i: int): string =
|
|||
proc `[]=`*(headers: HttpHeaders, key, value: string) =
|
||||
## Sets the header entries associated with ``key`` to the specified value.
|
||||
## Replaces any existing values.
|
||||
headers.table[key.toLower] = @[value.toLower]
|
||||
headers.table[key.toLower] = @[value]
|
||||
|
||||
proc `[]=`*(headers: HttpHeaders, key: string, value: seq[string]) =
|
||||
## Sets the header entries associated with ``key`` to the specified list of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue