mirror of
https://github.com/versity/versitygw.git
synced 2026-08-17 12:46:23 +00:00
Merge pull request #1929 from versity/ben/webui-policy
fix: webui pass correct arguments to request() in putBucketPolicy
This commit is contained in:
+1
-3
@@ -1846,9 +1846,7 @@ ${tagsXml}
|
||||
*/
|
||||
async putBucketPolicy(bucket, policy) {
|
||||
const policyJson = JSON.stringify(policy);
|
||||
await this.request('PUT', `/${bucket}`, { policy: '' }, policyJson, {
|
||||
'Content-Type': 'application/json'
|
||||
});
|
||||
await this.request('PUT', `/${bucket}`, { policy: '' }, policyJson, false, 'application/json');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user