mirror of https://github.com/encode/starlette.git
fixed issue 188,trailing spaces not allowed in header (#194)
This commit is contained in:
parent
150c7092e5
commit
0c3453815c
|
@ -107,7 +107,7 @@ class Response:
|
|||
cookie[key]["secure"] = True # type: ignore
|
||||
if httponly:
|
||||
cookie[key]["httponly"] = True # type: ignore
|
||||
cookie_val = cookie.output(header="")
|
||||
cookie_val = cookie.output(header="").strip()
|
||||
self.raw_headers.append((b"set-cookie", cookie_val.encode("latin-1")))
|
||||
|
||||
def delete_cookie(self, key: str, path: str = "/", domain: str = None) -> None:
|
||||
|
|
Loading…
Reference in New Issue