Commit f200b392 by John Chen Committed by GitHub

fix: 修复oss读取etag时读取异常 (#7362)

parent dc97c08c
......@@ -112,7 +112,7 @@ export class OssStorageAdapter implements IStorage {
return {
key,
metadata,
etag: result.meta?.etag as string,
etag: headers['etag'] ? headers['etag'].replace(/"/g, '') : undefined,
bucket: this.options.bucket,
contentType: headers['content-type'],
contentLength: headers['content-length'] ? Number(headers['content-length']) : undefined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment