Utils.js: fix cookie handling

Use unsecure cookie foör testing.
This commit is contained in:
Dietmar Maurer
2019-01-31 10:08:08 +01:00
parent 9f49fe1d5d
commit f484eed3c2
2 changed files with 4 additions and 3 deletions

View File

@ -295,8 +295,6 @@ fn get_index() -> BoxFut {
let resp = Response::builder()
.status(StatusCode::OK)
.header(header::CONTENT_TYPE, "text/html")
// emulate succssful login, so that Proxmox:Utils.authOk() returns true
.header(header::SET_COOKIE, "PBSAuthCookie=\"XXX\"") // fixme: remove
.body(index.into())
.unwrap();