-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set content type of the object gives 403 error #14
Comments
|
I passed the test with your case. It works in both s3 and minio. Can you check, if there is something wrong with the s3 configuration? |
i use eu-west-1 .. everything works fine without the headers parameter local headers = util.new_headers() local s3 = awss3:new(aws_id, aws_secret, aws_bucket, {timeout=1000*10, aws_region=aws_region}) local ok, response = s3:put("test/key1", "data1", headers) status:403, body: ** im calling it from nginx timer |
I'm sorry, I wasn't able to reproduce the issue, I used a
|
Ok ... I tried to run hardcording those values in Auth classs it works fine But when i run from the ngx.timer.at(0, func) context (even non modified util.headers ) gives unauthorized. bit strange |
local headers = util.new_headers()
headers['Content-Type']= 'text/plain'
...
....
local ok, response = s3:put("key", "value", header)
The text was updated successfully, but these errors were encountered: