fix(server): include auth challenge on typed 401 (#26455)

This commit is contained in:
Kit Langton 2026-05-09 00:15:20 -04:00 • committed by GitHub
commit 8cbc43fbb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}),
)