-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We used to call `ngx.req.get_headers()` to get all possible header values, but since nginx 1.23.0 or OpenResty 1.25.3.1 `ngx.var` can get a combined value for all header values with identical name (joined by comma), so I think that we could simplify these code. There is one concern: If header `X-Forwarded-Proto` has a comma separated value like `http, https`, This PR will think it is a multiple header request and report an error `Only one X-Forwarded-Proto header allowed`. But I think that it is an unlikely case in the real world. KAG-4673
- Loading branch information
Showing
3 changed files
with
48 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3b066dc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:3b066dc4cb66feca63d231ec89feb66c6cb1b7f1
Artifacts available https://github.com/Kong/kong/actions/runs/9412824168