From 0eb0aa55076d0436d34b45e95cc898012135db93 Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Tue, 20 Feb 2024 15:02:02 +1300 Subject: [PATCH] fix(source-aws): Fix the Source.head function to decode url for the s3 object key. (#1401) --- packages/source-aws/src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/source-aws/src/index.ts b/packages/source-aws/src/index.ts index fa8ab03d..ce801a09 100644 --- a/packages/source-aws/src/index.ts +++ b/packages/source-aws/src/index.ts @@ -60,7 +60,6 @@ export class SourceAwsS3 implements Source { const request = new HeadObjectCommand({ ...SourceAwsS3.getBucketKey(this.url), - Key: this.url.pathname.slice(1), RequestPayer: this.requestPayer, }); this._head = this.client.send(request).then((response) => {