Skip to content

Commit 33b1df2

Browse files
sunnylqmclaude
andcommitted
style: format presigned PUT headers (biome)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 52a5083 commit 33b1df2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,10 @@ export async function uploadFile(
260260
method: 'PUT',
261261
body: fileStream,
262262
// 预签名 PUT 不接受 chunked 传输,必须显式声明长度
263-
headers: { 'content-length': String(fileSize), ...(resp.headers || {}) },
263+
headers: {
264+
'content-length': String(fileSize),
265+
...(resp.headers || {}),
266+
},
264267
});
265268
} catch (error) {
266269
if (isProxyRelatedError(error)) {

0 commit comments

Comments
 (0)