From d96244aadf0a2b02889d1bacdb4b0fc9720ba8b2 Mon Sep 17 00:00:00 2001 From: Chrono Date: Wed, 19 Oct 2022 12:03:40 +0800 Subject: [PATCH] style(*): style fix for plugin server and `CHANGELOG.md` Add change log entry for #9173. --- CHANGELOG.md | 14 +++++++++++--- kong/runloop/plugin_servers/init.lua | 4 +--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f7affe0f2be..13ec178d0226 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -108,17 +108,21 @@ #### Admin API -- Increase the maximum request argument number from `100` to `1000`, and return 400 error if request parameters reach the limitation to avoid being truncated. +- Increase the maximum request argument number from `100` to `1000`, + and return `400` error if request parameters reach the limitation to + avoid being truncated. [#9510](https://github.com/Kong/kong/pull/9510) #### PDK -- Added support for `kong.request.get_uri_captures`(`kong.request.getUriCaptures`) +- Added support for `kong.request.get_uri_captures` + (`kong.request.getUriCaptures`) [#9512](https://github.com/Kong/kong/pull/9512) #### Plugins -- **AWS Lambda**: Fix an issue that is causing inability to read environment variables in ECS environment. +- **AWS Lambda**: Fix an issue that is causing inability to + read environment variables in ECS environment. [#9460](https://github.com/Kong/kong/pull/9460) ### Dependencies @@ -131,6 +135,10 @@ #### Plugins +- **Zipkin**: add `response_header_for_traceid` field in Zipkin plugin. + The plugin will set the corresponding header in the response + if the field is specified with a string value. + [#9173](https://github.com/Kong/kong/pull/9173) - **AWS Lambda**: add `requestContext` field into `awsgateway_compatible` input data [#9380](https://github.com/Kong/kong/pull/9380) diff --git a/kong/runloop/plugin_servers/init.lua b/kong/runloop/plugin_servers/init.lua index 1e346c6fbe4e..a224ddd10abc 100644 --- a/kong/runloop/plugin_servers/init.lua +++ b/kong/runloop/plugin_servers/init.lua @@ -4,8 +4,6 @@ local cjson = require "cjson.safe" local clone = require "table.clone" local ngx_ssl = require "ngx.ssl" local SIGTERM = 15 -local type = type -local pairs = pairs local type = type local pairs = pairs @@ -113,7 +111,7 @@ local exposed_api = { return header_value end, - ["kong.request.get_uri_captures"] = function () + ["kong.request.get_uri_captures"] = function() local saved = get_saved() local ngx_ctx = saved and saved.ngx_ctx or ngx.ctx return kong.request.get_uri_captures(ngx_ctx)