(method, bucketName, body)
| 333 | } |
| 334 | |
| 335 | createBucketCorsRequest(method, bucketName, body) { |
| 336 | const request = { |
| 337 | bucketName, |
| 338 | headers: { |
| 339 | host: `${bucketName}.s3.amazonaws.com`, |
| 340 | }, |
| 341 | url: '/?cors', |
| 342 | query: { cors: '' }, |
| 343 | actionImplicitDenies: false, |
| 344 | }; |
| 345 | if (method === 'PUT') { |
| 346 | request.post = body || this.constructXml(); |
| 347 | request.headers['content-md5'] = crypto.createHash('md5') |
| 348 | .update(request.post, 'utf8').digest('base64'); |
| 349 | } |
| 350 | return request; |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | const objectLockTestUtils = { |
no test coverage detected