Skip to content

Commit

Permalink
fix(s3): Internally set Content-Length on setItem
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Jan 16, 2024
1 parent 73bf8c0 commit 967a971
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/drivers/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export default defineDriver((options: S3DriverOptions) => {

opts.headers = {
'Content-Type': contentType,
'Content-Length': value.length.toString(),
...opts.headers
}

Expand Down

0 comments on commit 967a971

Please sign in to comment.