From 253ea5adf613cdbd72145482396dc29fb25b4a8d Mon Sep 17 00:00:00 2001 From: csg01123119 Date: Wed, 19 Jun 2024 10:48:37 +0800 Subject: [PATCH] feat: support multipartUpload set storage-class header --- test/node/object.test.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/node/object.test.js b/test/node/object.test.js index 0c9b2f36..26336683 100644 --- a/test/node/object.test.js +++ b/test/node/object.test.js @@ -548,17 +548,6 @@ describe('test/object.test.js', () => { result = await store.head(name); assert.equal(result.res.headers['content-type'], 'text/plain'); }); - it('should set storage-class header', async () => { - const filepath = path.join(tmpdir, 'content-storage-class-file.jpg'); - await createFile(filepath); - const name = `${prefix}ali-sdk/oss/content-type-by-file.png`; - await store.multipartUpload(name, filepath, { - mime: 'text/plain', - headers: { 'x-oss-storage-class': 'Standard' } - }); - const result = await store.head(name); - assert.equal(result.res.headers['content-type'], 'text/plain'); - }); }); describe('head()', () => {