Skip to content

Commit

Permalink
fix log retention content length
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Mar 10, 2023
1 parent 32df470 commit f064bcc
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -188,7 +188,10 @@ export async function handler(event: AWSLambda.CloudFormationCustomResourceEvent
hostname: parsedUrl.hostname,
path: parsedUrl.path,
method: 'PUT',
headers: { 'content-type': '', 'content-length': responseBody.length },
headers: {
'content-type': '',
'content-length': Buffer.byteLength(responseBody, 'utf8'),
},
};

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit f064bcc

Please sign in to comment.