fix(server): include auth challenge on typed 401 (#26455)
This commit is contained in:
parent
82359c4b1b
commit
8cbc43fbb0
1 changed files with 9 additions and 2 deletions
|
|
@ -72,7 +72,9 @@ describe("HttpApi authorization middleware", () => {
|
|||
)
|
||||
|
||||
expect(missing.status).toBe(401)
|
||||
expect(missing.headers["www-authenticate"] ?? "").toContain("Basic")
|
||||
expect(badPassword.status).toBe(401)
|
||||
expect(badPassword.headers["www-authenticate"] ?? "").toContain("Basic")
|
||||
expect(good.status).toBe(200)
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue