Skip to content

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

Open
BotoX wants to merge 1 commit intoopenresty:masterfrom
BotoX:master
Open

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

Conversation

@BotoX
Copy link

@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
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

1 participant