Skip to content

Commit

Permalink
chore: Fix storage provider type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblanc committed Aug 15, 2023
1 parent e112540 commit 363f364
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
5 changes: 1 addition & 4 deletions packages/storage/src/providers/AWSS3Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,7 @@ export class AWSS3Provider implements StorageProvider {
const final_key = prefix + key;
logger.debug(`getProperties ${key} from ${final_key}`);
const { bucket } = AmplifyV6.getConfig()?.Storage ?? {};
const s3Config = loadS3Config({
...opt,
storageAction: StorageAction.GetProperties,
});
const s3Config = loadS3Config({ ...opt, userAgentValue });
const params: HeadObjectInput = {
Bucket: bucket,
Key: final_key,
Expand Down
33 changes: 18 additions & 15 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 363f364

Please sign in to comment.