Skip to content

Commit

Permalink
feat: support multipartUpload set storage-class header
Browse files Browse the repository at this point in the history
  • Loading branch information
csg01123119 committed Jun 19, 2024
1 parent 47abadd commit 253ea5a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/node/object.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()', () => {
Expand Down

0 comments on commit 253ea5a

Please sign in to comment.