Skip to content

Commit c28fa18

Browse files
committed
fix(cos): support method inputs for getObjectUrl
1 parent 16652fc commit c28fa18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/baas/cos/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ class Cos {
341341
Bucket: inputs.bucket,
342342
Region: this.region,
343343
Key: inputs.object,
344+
// default request method is GET
345+
Method: inputs.method || 'GET',
344346
// default expire time is 15min
345347
Expires: inputs.expires || 900,
346348
// default is sign url

0 commit comments

Comments
 (0)