tokers commented on a change in pull request #2830:
URL: https://github.com/apache/apisix/pull/2830#discussion_r529226269
##########
File path: apisix/plugins/hmac-auth.lua
##########
@@ -224,6 +224,13 @@ local function generate_signature(ctx, secret_key, params)
for _, key in pairs(keys) do
local param = args[key]
+ -- when args without `=<value>`, value is treated as true.
+ -- In order to be compatible with args lacking `=<value>`,
+ -- we need to replace true with an empty string.
+ if type(param) == "boolean" then
+ param = ""
Review comment:
Have you investigated implementations in other languages like `node.js`,
`golang`, `python`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]