Merge pull request #621 from arabcoders/dev
Some checks failed
native-build / build (amd64, ubuntu-latest) (push) Has been cancelled
native-build / build (amd64, windows-latest) (push) Has been cancelled
native-build / build (arm64, macos-latest) (push) Has been cancelled
native-build / build (arm64, ubuntu-latest) (push) Has been cancelled
native-build / build (arm64, windows-latest) (push) Has been cancelled
Some checks failed
native-build / build (amd64, ubuntu-latest) (push) Has been cancelled
native-build / build (amd64, windows-latest) (push) Has been cancelled
native-build / build (arm64, macos-latest) (push) Has been cancelled
native-build / build (arm64, ubuntu-latest) (push) Has been cancelled
native-build / build (arm64, windows-latest) (push) Has been cancelled
fix: setting simple_mode cookie was crashing http layer
This commit is contained in:
commit
c68646e266
1 changed files with 7 additions and 7 deletions
|
|
@ -328,13 +328,13 @@ class HttpAPI:
|
|||
new_response.set_cookie(
|
||||
morsel.key,
|
||||
morsel.value,
|
||||
expires=morsel["expires"],
|
||||
domain=morsel["domain"],
|
||||
max_age=morsel["max-age"],
|
||||
path=morsel["path"],
|
||||
secure=bool(morsel["secure"]),
|
||||
httponly=bool(morsel["httponly"]),
|
||||
samesite=morsel["samesite"] or None,
|
||||
expires=morsel.get("expires"),
|
||||
domain=morsel.get("domain"),
|
||||
max_age=morsel.get("max-age"),
|
||||
path=morsel.get("path") or "/",
|
||||
secure=bool(morsel.get("secure")),
|
||||
httponly=bool(morsel.get("httponly")),
|
||||
samesite=morsel.get("samesite") or None,
|
||||
)
|
||||
|
||||
return new_response
|
||||
|
|
|
|||
Loading…
Reference in a new issue