(method, bucketName, objectName, body)
| 425 | } |
| 426 | |
| 427 | createObjectTaggingRequest(method, bucketName, objectName, body) { |
| 428 | const request = { |
| 429 | bucketName, |
| 430 | headers: { |
| 431 | host: `${bucketName}.s3.amazonaws.com`, |
| 432 | }, |
| 433 | objectKey: objectName, |
| 434 | url: '/?tagging', |
| 435 | query: { tagging: '' }, |
| 436 | actionImplicitDenies: false, |
| 437 | }; |
| 438 | if (method === 'PUT') { |
| 439 | request.post = body || this.constructXml(); |
| 440 | request.headers['content-md5'] = crypto.createHash('md5') |
| 441 | .update(request.post, 'utf8').digest('base64'); |
| 442 | } |
| 443 | return request; |
| 444 | } |
| 445 | |
| 446 | createBucketTaggingRequest(method, bucketName, body, implicitDeny = false) { |
| 447 | const request = { |
no test coverage detected