mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 07:21:19 +00:00
Fixes httpcore.[]= so that it doesn't convert value to lowercase.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user