From 58ca734da4d5b73c71dc6a8d8ad149ebe06c30b3 Mon Sep 17 00:00:00 2001 From: Doridian Date: Sun, 26 Mar 2023 01:04:34 -0700 Subject: [PATCH] Run in module environment --- lib/resty/aws-signature.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/resty/aws-signature.lua b/lib/resty/aws-signature.lua index d87deb3..7d34a8b 100644 --- a/lib/resty/aws-signature.lua +++ b/lib/resty/aws-signature.lua @@ -17,6 +17,12 @@ limitations under the License. local resty_hmac = require('resty.hmac') local resty_sha256 = require('resty.sha256') local str = require('resty.string') +local os = os +local ngx = ngx +local setmetatable = setmetatable +local tonumber = tonumber + +setfenv(1, {}) local _M = { _VERSION = '0.2.0' }