Fixes httpcore.[]= so that it doesn't convert value to lowercase.

This commit is contained in:
Dominik Picheta
2016-06-06 22:15:43 +01:00
parent 39d802188c
commit ad91da8342

View File

@@ -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