Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Fix s3_set_headers call
Browse files Browse the repository at this point in the history
  • Loading branch information
lukkor committed Sep 20, 2018
1 parent 820636a commit f1baa6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resty/aws-signature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local resty_hmac = require('resty.hmac')
local resty_sha256 = require('resty.sha256')
local str = require('resty.string')

local _M = { _VERSION = '0.1.1' }
local _M = { _VERSION = '0.1.2' }

local function get_credentials ()
local access_key = os.getenv('AWS_ACCESS_KEY_ID')
Expand Down Expand Up @@ -126,7 +126,7 @@ function _M.aws_set_headers(host, uri)
end

function _M.s3_set_headers(host, uri)
aws_set_headers(host, uri)
_M.aws_set_headers(host, uri)
ngx.req.set_header('x-amz-content-sha256', get_sha256_digest(ngx.var.request_body))
end

Expand Down

0 comments on commit f1baa6d

Please sign in to comment.