Skip to content

Commit cf9ef08

Browse files
committed
fix: code example
1 parent a992c3b commit cf9ef08

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

packages/s3-request-presigner/README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,6 @@ const command = new PutObjectCommand({
134134
ContentType: contentType,
135135
});
136136

137-
// Set of non x-amz-* you wish to have signed
138-
const signableHeaders = new Set(["content-type"]);
139-
140-
const presigned = getSignedUrl(s3Client, command, {
141-
signableHeaders,
142-
expiresIn: expiration,
143-
// Set of all x-amz-* headers you wish to have signed
144-
unhoistableHeaders: new Set(["x-amz-checksum-sha256"]),
145-
ContentType: contentType,
146-
});
147-
148137
const presigned = getSignedUrl(s3Client, command, {
149138
signableHeaders: new Set(["content-type"]),
150139
expiresIn: expiration,

0 commit comments

Comments
 (0)