Skip to content

Commit 46c32d9

Browse files
committed
DO-1852: use async method to retrieve CSP file content
1 parent 5ca98de commit 46c32d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/static-hosting/lib/handlers/csp-lambda/origin-response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const handler = async (
4242
throw new Error("CSP file is empty or missing");
4343
}
4444

45-
csp += s3Object.Body.toString();
45+
csp += await s3Object.Body.transformToString();
4646

4747
console.log("CSP file retrieved:", csp);
4848

0 commit comments

Comments
 (0)