Skip to content

Commit

Permalink
fix: more strict content type check
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Oct 16, 2023
1 parent dfc34fb commit 3ee496e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function get(key: string) {
});
const result = await streamToBuffer(Body);

if (ContentType.includes(constants.json.contentType)) {
if (ContentType === constants.json.contentType) {
return result.toString('utf8');
}
return result;
Expand Down

0 comments on commit 3ee496e

Please sign in to comment.