tokers commented on a change in pull request #4709:
URL: https://github.com/apache/apisix/pull/4709#discussion_r679594552
##########
File path: apisix/discovery/nacos.lua
##########
@@ -92,14 +105,58 @@ local function discovery_nacos_callback(data, event,
source, pid)
", application: ", core.json.encode(applications, true))
end
-local function request(request_uri, path, body, method, basic_auth)
+local function get_aliyun_ram_sign_headers(param_values, access_key,
secret_key)
+ if not param_values then
+ return {}
+ end
+
+ local namespace_id = param_values['namespace_id']
+ local group_name = param_values['group_name']
+ local time_ngx = ngx.utctime()
+ local time_change = string.gsub(time_ngx, " ", "T")
+ local time_utc = time_change .. 'Z'
+ local headers = {}
+ headers['Spas-AccessKey'] = access_key
+ headers['Timestamp'] = time_utc
Review comment:
```suggestion
local headers = {
['Spas-AccessKey'] = access_key,
['Timestamp'] = time_utc
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]