Skip to content

bugfix: allow table for multiple values in ngx.header['WWW-Authenticate'] fixes.#2487

Merged
zhuizhuhaomeng merged 1 commit intoopenresty:masterfrom
BotoX:master
Apr 15, 2026
Merged

bugfix: allow table for multiple values in ngx.header['WWW-Authenticate'] fixes.#2487
zhuizhuhaomeng merged 1 commit intoopenresty:masterfrom
BotoX:master

Conversation

@BotoX
Copy link
Copy Markdown
Contributor

@BotoX BotoX commented Mar 20, 2026

With this patch it's possible to send multiple WWW-Authenticate headers from Lua:

Like so:

ngx.header["WWW-Authenticate"] = {"Negotiate", "NTLM", "Basic"}

And actually get:

www-authenticate: Negotiate
www-authenticate: NTLM
www-authenticate: Basic

instead of just one of them.

Fixes #2400

@zhuizhuhaomeng zhuizhuhaomeng changed the title allow table for multiple values in ngx.header['WWW-Authenticate'] fixes #2400 bugfix: allow table for multiple values in ngx.header['WWW-Authenticate'] fixes. Mar 22, 2026
@zhuizhuhaomeng zhuizhuhaomeng merged commit cf9f7aa into openresty:master Apr 15, 2026
5 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ngx.header['WWW-Authenticate'] should allow table for multiple values

2 participants