(method, bucketName, body, implicitDeny = false)
| 444 | } |
| 445 | |
| 446 | createBucketTaggingRequest(method, bucketName, body, implicitDeny = false) { |
| 447 | const request = { |
| 448 | bucketName, |
| 449 | headers: { |
| 450 | host: `${bucketName}.s3.amazonaws.com`, |
| 451 | }, |
| 452 | url: '/?tagging', |
| 453 | query: { tagging: '' }, |
| 454 | actionImplicitDenies: implicitDeny, |
| 455 | }; |
| 456 | if (method === 'PUT') { |
| 457 | request.post = body || this.constructXml(); |
| 458 | request.headers['content-md5'] = crypto.createHash('md5') |
| 459 | .update(request.post, 'utf8').digest('base64'); |
| 460 | } |
| 461 | return request; |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | class AccessControlPolicy { |
no test coverage detected